refactor!: rework to function as remote test runner #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Lint files | |
run: yarn lint | |
- name: Typecheck files | |
run: yarn typecheck | |
test: | |
runs-on: macos-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Start Metro Bundler | |
continue-on-error: true | |
working-directory: ./example | |
run: nohup sh -c "yarn start > metro.log 2>&1 &" | |
- name: Run unit tests | |
working-directory: ./example | |
# TODO nyc breaks xcodebuild | |
# run: jet --target=macos --coverage | |
run: jet --target=macos | |
- name: Upload Metro Log | |
uses: actions/upload-artifact@v4 | |
if: always() | |
with: | |
name: metro_log | |
path: metro.log | |
build-library: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Build package | |
run: yarn prepare |