chore: fix react-native@next build #612
This file contains hidden or 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: ['**'] | |
# Set minimal permissions by default | |
permissions: | |
contents: read | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ !contains(github.ref, 'main')}} | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
name: Lint | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js and deps | |
uses: ./.github/actions/setup-deps | |
- name: Lint | |
run: yarn lint | |
- name: Prettier | |
run: yarn prettier | |
typecheck: | |
runs-on: ubuntu-latest | |
name: Typecheck | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js and deps | |
uses: ./.github/actions/setup-deps | |
- name: Typecheck | |
run: yarn typecheck | |
typecheck-react-18: | |
runs-on: ubuntu-latest | |
name: Typecheck React 18 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js and deps | |
uses: ./.github/actions/setup-deps-react-18 | |
- name: Typecheck | |
run: yarn typecheck | |
test: | |
runs-on: ubuntu-latest | |
name: Test | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js and deps | |
uses: ./.github/actions/setup-deps | |
- name: Test | |
run: yarn test:ci:coverage | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@18283e04ce6e62d37312384ff67231eb8fd56d24 # v5.4.3 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
test-react-18: | |
runs-on: ubuntu-latest | |
name: Test React 18 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Node.js and deps | |
uses: ./.github/actions/setup-deps-react-18 | |
- name: Test | |
run: yarn test:ci |