-
Notifications
You must be signed in to change notification settings - Fork 278
151 lines (132 loc) · 4.68 KB
/
nightly.yaml
File metadata and controls
151 lines (132 loc) · 4.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
name: Nightly - 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, 'main')}}
jobs:
lint:
runs-on: ubuntu-latest
name: Lint → RN ${{ matrix.rn-version }}
strategy:
fail-fast: false
matrix:
rn-version: [latest, next, nightly]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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 → RN ${{ matrix.rn-version }}
strategy:
fail-fast: false
matrix:
rn-version: [latest, next, nightly]
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- 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
- name: Typecheck React 19.2-only tests
uses: ./.github/actions/typecheck-react-19_2-if-supported
test:
runs-on: ubuntu-latest
name: Test → RN ${{ matrix.rn-lane }} x TR ${{ matrix.test-renderer-version }}
strategy:
fail-fast: false
matrix:
rn-lane:
['0.85', '0.84', '0.83', '0.82', '0.81', '0.80', '0.79', '0.78', latest, next, nightly]
test-renderer-version: ['~1.0', '~1.1', '~1.2']
include:
- rn-lane: '0.85'
setup-kind: stable
react-version: '19.2.3'
react-native-version: '~0.85.0'
- rn-lane: '0.84'
setup-kind: stable
react-version: '19.2.3'
react-native-version: '~0.84.1'
- rn-lane: '0.83'
setup-kind: stable
react-version: '19.2.0'
react-native-version: '~0.83.4'
- rn-lane: '0.82'
setup-kind: stable
react-version: '19.1.1'
react-native-version: '~0.82.1'
- rn-lane: '0.81'
setup-kind: stable
react-version: '19.1.4'
react-native-version: '~0.81.6'
- rn-lane: '0.80'
setup-kind: stable
react-version: '19.1.0'
react-native-version: '~0.80.3'
- rn-lane: '0.79'
setup-kind: stable
react-version: '19.0.0'
react-native-version: '~0.79.7'
- rn-lane: '0.78'
setup-kind: stable
react-version: '19.0.0'
react-native-version: '~0.78.3'
- rn-lane: latest
setup-kind: latest
- rn-lane: next
setup-kind: next
- rn-lane: nightly
setup-kind: nightly
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js and deps (stable)
if: matrix.setup-kind == 'stable'
uses: ./.github/actions/setup-deps
with:
react-version: ${{ matrix.react-version }}
react-native-version: ${{ matrix.react-native-version }}
test-renderer-version: ${{ matrix.test-renderer-version }}
- name: Setup Node.js and deps (latest)
if: matrix.setup-kind == 'latest'
uses: ./.github/actions/setup-deps-rn-latest
with:
test-renderer-version: ${{ matrix.test-renderer-version }}
- name: Setup Node.js and deps (next)
if: matrix.setup-kind == 'next'
uses: ./.github/actions/setup-deps-rn-next
with:
test-renderer-version: ${{ matrix.test-renderer-version }}
- name: Setup Node.js and deps (nightly)
if: matrix.setup-kind == 'nightly'
uses: ./.github/actions/setup-deps-rn-nightly
with:
test-renderer-version: ${{ matrix.test-renderer-version }}
- name: Test
run: yarn test:ci