Skip to content

Commit cef03d1

Browse files
chore: nightly CI for v13 (#1853)
1 parent d72e46d commit cef03d1

File tree

3 files changed

+98
-2
lines changed

3 files changed

+98
-2
lines changed

.github/actions/setup-deps-rn-next/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ runs:
2828

2929
- name: Switch to React Native Next
3030
run: |
31-
yarn add -D react-native@next @react-native/babel-preset@next
31+
yarn add -D react-native@next @react-native/babel-preset@next [email protected]
3232
shell: bash

.github/workflows/nightly-v13.yaml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
name: Nightly v13 - React Native Checks
2+
on:
3+
# Runs every night at 4 AM
4+
schedule:
5+
- cron: '0 4 * * *'
6+
workflow_dispatch:
7+
8+
# Set minimal permissions by default
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ !contains(github.ref, 'v13-stable')}}
15+
16+
jobs:
17+
lint:
18+
runs-on: ubuntu-latest
19+
name: Lint - ${{ matrix.rn-version }}
20+
strategy:
21+
matrix:
22+
rn-version: [latest, next, nightly]
23+
steps:
24+
- name: Checkout
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26+
with:
27+
ref: v13-stable
28+
29+
- name: Setup Node.js and deps (latest)
30+
if: matrix.rn-version == 'latest'
31+
uses: ./.github/actions/setup-deps-rn-latest
32+
33+
- name: Setup Node.js and deps (next)
34+
if: matrix.rn-version == 'next'
35+
uses: ./.github/actions/setup-deps-rn-next
36+
37+
- name: Setup Node.js and deps (nightly)
38+
if: matrix.rn-version == 'nightly'
39+
uses: ./.github/actions/setup-deps-rn-nightly
40+
41+
- name: Lint
42+
run: yarn lint
43+
44+
typecheck:
45+
runs-on: ubuntu-latest
46+
name: Typecheck - ${{ matrix.rn-version }}
47+
strategy:
48+
matrix:
49+
rn-version: [latest, next, nightly]
50+
steps:
51+
- name: Checkout
52+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
53+
with:
54+
ref: v13-stable
55+
56+
- name: Setup Node.js and deps (latest)
57+
if: matrix.rn-version == 'latest'
58+
uses: ./.github/actions/setup-deps-rn-latest
59+
60+
- name: Setup Node.js and deps (next)
61+
if: matrix.rn-version == 'next'
62+
uses: ./.github/actions/setup-deps-rn-next
63+
64+
- name: Setup Node.js and deps (nightly)
65+
if: matrix.rn-version == 'nightly'
66+
uses: ./.github/actions/setup-deps-rn-nightly
67+
68+
- name: Typecheck
69+
run: yarn typecheck
70+
71+
test:
72+
runs-on: ubuntu-latest
73+
name: Test - ${{ matrix.rn-version }}
74+
strategy:
75+
matrix:
76+
rn-version: [latest, next, nightly]
77+
steps:
78+
- name: Checkout
79+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
80+
with:
81+
ref: v13-stable
82+
83+
- name: Setup Node.js and deps (latest)
84+
if: matrix.rn-version == 'latest'
85+
uses: ./.github/actions/setup-deps-rn-latest
86+
87+
- name: Setup Node.js and deps (next)
88+
if: matrix.rn-version == 'next'
89+
uses: ./.github/actions/setup-deps-rn-next
90+
91+
- name: Setup Node.js and deps (nightly)
92+
if: matrix.rn-version == 'nightly'
93+
uses: ./.github/actions/setup-deps-rn-nightly
94+
95+
- name: Test
96+
run: yarn test:ci

.github/workflows/nightly.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: React Native Nightly
1+
name: Nightly - React Native Checks
22
on:
33
# Runs every night at 4 AM
44
schedule:

0 commit comments

Comments
 (0)