Skip to content

Commit

Permalink
feat: Improve CI/CD (#2)
Browse files Browse the repository at this point in the history
* Release on tag pushed
  • Loading branch information
sehyod authored Nov 20, 2023
1 parent 20aef7a commit 563a278
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 134 deletions.
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.

0 comments on commit 563a278

Please sign in to comment.