Skip to content

Commit d72e46d

Browse files
chore: unify nightly jobs (#1852)
1 parent 54dee92 commit d72e46d

File tree

4 files changed

+90
-165
lines changed

4 files changed

+90
-165
lines changed

.github/workflows/nightly.yaml

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: React Native Nightly
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, 'main')}}
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+
27+
- name: Setup Node.js and deps (latest)
28+
if: matrix.rn-version == 'latest'
29+
uses: ./.github/actions/setup-deps-rn-latest
30+
31+
- name: Setup Node.js and deps (next)
32+
if: matrix.rn-version == 'next'
33+
uses: ./.github/actions/setup-deps-rn-next
34+
35+
- name: Setup Node.js and deps (nightly)
36+
if: matrix.rn-version == 'nightly'
37+
uses: ./.github/actions/setup-deps-rn-nightly
38+
39+
- name: Lint
40+
run: yarn lint
41+
42+
typecheck:
43+
runs-on: ubuntu-latest
44+
name: Typecheck - ${{ matrix.rn-version }}
45+
strategy:
46+
matrix:
47+
rn-version: [latest, next, nightly]
48+
steps:
49+
- name: Checkout
50+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
51+
52+
- name: Setup Node.js and deps (latest)
53+
if: matrix.rn-version == 'latest'
54+
uses: ./.github/actions/setup-deps-rn-latest
55+
56+
- name: Setup Node.js and deps (next)
57+
if: matrix.rn-version == 'next'
58+
uses: ./.github/actions/setup-deps-rn-next
59+
60+
- name: Setup Node.js and deps (nightly)
61+
if: matrix.rn-version == 'nightly'
62+
uses: ./.github/actions/setup-deps-rn-nightly
63+
64+
- name: Typecheck
65+
run: yarn typecheck
66+
67+
test:
68+
runs-on: ubuntu-latest
69+
name: Test - ${{ matrix.rn-version }}
70+
strategy:
71+
matrix:
72+
rn-version: [latest, next, nightly]
73+
steps:
74+
- name: Checkout
75+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
76+
77+
- name: Setup Node.js and deps (latest)
78+
if: matrix.rn-version == 'latest'
79+
uses: ./.github/actions/setup-deps-rn-latest
80+
81+
- name: Setup Node.js and deps (next)
82+
if: matrix.rn-version == 'next'
83+
uses: ./.github/actions/setup-deps-rn-next
84+
85+
- name: Setup Node.js and deps (nightly)
86+
if: matrix.rn-version == 'nightly'
87+
uses: ./.github/actions/setup-deps-rn-nightly
88+
89+
- name: Test
90+
run: yarn test:ci

.github/workflows/react-native-latest.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/react-native-next.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

.github/workflows/react-native-nightly.yml

Lines changed: 0 additions & 55 deletions
This file was deleted.

0 commit comments

Comments
 (0)