Skip to content

refactor!: rework to function as remote test runner #13

refactor!: rework to function as remote test runner

refactor!: rework to function as remote test runner #13

Workflow file for this run

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