Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve CI/CD #2

Merged
merged 7 commits into from
Nov 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions .github/workflows/cut-release.yml

This file was deleted.

53 changes: 53 additions & 0 deletions .github/workflows/on-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Continuous Integration
on:
pull_request:
push:
branches:
- main
tags:
- "*"
jobs:
run-tests:
runs-on: macos-12
strategy:
fail-fast: true
matrix:
include:
- name: Legacy architecture
scheme: TvOSExample
pod_install_command: pod install
- name: Fabric architecture
scheme: FabricTvOSExample
pod_install_command: RCT_NEW_ARCH_ENABLED=1 pod install
steps:
- name: checkout
uses: actions/checkout@v4
- name: Use Node.js 18
uses: actions/setup-node@v4
with:
node-version: 18
cache: "yarn"
cache-dependency-path: "${{ matrix.scheme }}/yarn.lock"
- name: Install node dependencies
working-directory: ${{ matrix.scheme }}
run: yarn
- name: Install pods
working-directory: ${{ matrix.scheme }}/ios
run: ${{ matrix.pod_install_command }}
- name: Build app
uses: sersoft-gmbh/xcodebuild-action@v3
with:
workspace: ${{ matrix.scheme }}/ios/${{ matrix.scheme }}.xcworkspace
scheme: ${{ matrix.scheme }}-tvOS
destination: platform=TvOS Simulator,name=Apple TV
action: clean build
build-settings: CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO
release:
needs: run-tests
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
4 changes: 2 additions & 2 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v2.1.1
uses: actions/setup-node@v4
with:
node-version: "20.x"
node-version: 18
registry-url: https://npm.pkg.github.com/
scope: "@yldio"
- name: Publish
Expand Down
42 changes: 0 additions & 42 deletions .github/workflows/tvos-build-test-fabric.yml

This file was deleted.

42 changes: 0 additions & 42 deletions .github/workflows/tvos-build-test.yml

This file was deleted.