mirror of
https://github.com/callstack/react-native-testing-library.git
synced 2026-09-18 23:09:04 +08:00
chore: nightly CI for v13 (#1853)
This commit is contained in:
committed by
GitHub
parent
d72e46d6f8
commit
cef03d19a4
@@ -28,5 +28,5 @@ runs:
|
||||
|
||||
- name: Switch to React Native Next
|
||||
run: |
|
||||
yarn add -D react-native@next @react-native/babel-preset@next
|
||||
yarn add -D react-native@next @react-native/babel-preset@next react@19.2.3
|
||||
shell: bash
|
||||
|
||||
@@ -0,0 +1,96 @@
|
||||
name: Nightly v13 - React Native Checks
|
||||
on:
|
||||
# Runs every night at 4 AM
|
||||
schedule:
|
||||
- cron: '0 4 * * *'
|
||||
workflow_dispatch:
|
||||
|
||||
# Set minimal permissions by default
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
cancel-in-progress: ${{ !contains(github.ref, 'v13-stable')}}
|
||||
|
||||
jobs:
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
name: Lint - ${{ matrix.rn-version }}
|
||||
strategy:
|
||||
matrix:
|
||||
rn-version: [latest, next, nightly]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: v13-stable
|
||||
|
||||
- name: Setup Node.js and deps (latest)
|
||||
if: matrix.rn-version == 'latest'
|
||||
uses: ./.github/actions/setup-deps-rn-latest
|
||||
|
||||
- name: Setup Node.js and deps (next)
|
||||
if: matrix.rn-version == 'next'
|
||||
uses: ./.github/actions/setup-deps-rn-next
|
||||
|
||||
- name: Setup Node.js and deps (nightly)
|
||||
if: matrix.rn-version == 'nightly'
|
||||
uses: ./.github/actions/setup-deps-rn-nightly
|
||||
|
||||
- name: Lint
|
||||
run: yarn lint
|
||||
|
||||
typecheck:
|
||||
runs-on: ubuntu-latest
|
||||
name: Typecheck - ${{ matrix.rn-version }}
|
||||
strategy:
|
||||
matrix:
|
||||
rn-version: [latest, next, nightly]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: v13-stable
|
||||
|
||||
- name: Setup Node.js and deps (latest)
|
||||
if: matrix.rn-version == 'latest'
|
||||
uses: ./.github/actions/setup-deps-rn-latest
|
||||
|
||||
- name: Setup Node.js and deps (next)
|
||||
if: matrix.rn-version == 'next'
|
||||
uses: ./.github/actions/setup-deps-rn-next
|
||||
|
||||
- name: Setup Node.js and deps (nightly)
|
||||
if: matrix.rn-version == 'nightly'
|
||||
uses: ./.github/actions/setup-deps-rn-nightly
|
||||
|
||||
- name: Typecheck
|
||||
run: yarn typecheck
|
||||
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
name: Test - ${{ matrix.rn-version }}
|
||||
strategy:
|
||||
matrix:
|
||||
rn-version: [latest, next, nightly]
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
ref: v13-stable
|
||||
|
||||
- name: Setup Node.js and deps (latest)
|
||||
if: matrix.rn-version == 'latest'
|
||||
uses: ./.github/actions/setup-deps-rn-latest
|
||||
|
||||
- name: Setup Node.js and deps (next)
|
||||
if: matrix.rn-version == 'next'
|
||||
uses: ./.github/actions/setup-deps-rn-next
|
||||
|
||||
- name: Setup Node.js and deps (nightly)
|
||||
if: matrix.rn-version == 'nightly'
|
||||
uses: ./.github/actions/setup-deps-rn-nightly
|
||||
|
||||
- name: Test
|
||||
run: yarn test:ci
|
||||
@@ -1,4 +1,4 @@
|
||||
name: React Native Nightly
|
||||
name: Nightly - React Native Checks
|
||||
on:
|
||||
# Runs every night at 4 AM
|
||||
schedule:
|
||||
|
||||
Reference in New Issue
Block a user