mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
56 lines
1.2 KiB
YAML
56 lines
1.2 KiB
YAML
name: React Native Nightly
|
|
on:
|
|
# Runs every night at 5 AM
|
|
schedule:
|
|
- cron: '0 5 * * *'
|
|
# Manual trigger
|
|
workflow_dispatch:
|
|
|
|
# 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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- name: Setup Node.js and deps
|
|
uses: ./.github/actions/setup-deps-rn-nightly
|
|
|
|
- name: Lint
|
|
run: yarn lint
|
|
|
|
typecheck:
|
|
runs-on: ubuntu-latest
|
|
name: Typecheck
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- name: Setup Node.js and deps
|
|
uses: ./.github/actions/setup-deps-rn-nightly
|
|
|
|
- name: Typecheck
|
|
run: yarn typecheck
|
|
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
name: Test
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
|
|
|
|
- name: Setup Node.js and deps
|
|
uses: ./.github/actions/setup-deps-rn-nightly
|
|
|
|
- name: Test
|
|
run: yarn test:ci
|