Repository navigation
103 lines (86 loc) · 3.15 KB
/
Copy pathnightly-v13.yaml
File metadata and controls
103 lines (86 loc) · 3.15 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
name: Nightly v13 - React Native Checks
on:
# Runs every night at 6 AM UTC, after the RN nightly publish window (~03:30-04:50 UTC).
# See the note in `nightly.yaml` for why resolving during that window breaks.
schedule:
- cron: '0 6 * * *'
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:
if: github.repository == 'callstack/react-native-testing-library' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
name: Lint → ${{ matrix.rn-version }}
strategy:
fail-fast: false
matrix:
rn-version: [latest, next, nightly]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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:
if: github.repository == 'callstack/react-native-testing-library' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
name: Typecheck → ${{ matrix.rn-version }}
strategy:
fail-fast: false
matrix:
rn-version: [latest, next, nightly]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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:
if: github.repository == 'callstack/react-native-testing-library' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
name: Test → ${{ matrix.rn-version }}
strategy:
fail-fast: false
matrix:
rn-version: [latest, next, nightly]
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
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