File tree Expand file tree Collapse file tree 2 files changed +100
-0
lines changed
actions/setup-deps-nightly Expand file tree Collapse file tree 2 files changed +100
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Setup deps (nightly)
2+ description : Setup Node.js and install dependencies
3+
4+ runs :
5+ using : composite
6+ steps :
7+ - name : Setup Node.js
8+ uses : actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
9+ with :
10+ node-version-file : .nvmrc
11+
12+ - name : Cache deps
13+ id : yarn-cache
14+ uses : actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
15+ with :
16+ path : |
17+ ./node_modules
18+ .yarn/install-state.gz
19+ key : ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
20+ restore-keys : |
21+ ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
22+ ${{ runner.os }}-yarn-
23+
24+ - name : Install deps
25+ if : steps.yarn-cache.outputs.cache-hit != 'true'
26+ run : yarn install --immutable
27+ shell : bash
28+
29+ - name : Switch to React Native Nightly
30+ run : |
31+ yarn remove react react-test-renderer react-native @react-native/babel-preset
32+ yarn add -D react@19.1.0 react-test-renderer@19.1.0 react-native@nightly @react-native/babel-preset@nightly
Original file line number Diff line number Diff line change 1+ name : React Native Nightly
2+ on :
3+ # Runs every night at 5 AM
4+ schedule :
5+ - cron : ' 0 5 * * *'
6+ # Manaual trigger
7+ workflow_dispatch :
8+
9+ # Set minimal permissions by default
10+ permissions :
11+ contents : read
12+
13+ concurrency :
14+ group : ${{ github.workflow }}-${{ github.ref }}
15+ cancel-in-progress : ${{ !contains(github.ref, 'main')}}
16+
17+ jobs :
18+ install-cache-deps :
19+ runs-on : ubuntu-latest
20+ name : Install and Cache deps
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24+
25+ - name : Setup
26+ uses : ./.github/actions/setup-deps
27+
28+ lint :
29+ needs : [install-cache-deps]
30+ runs-on : ubuntu-latest
31+ name : Lint
32+ steps :
33+ - name : Checkout
34+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35+
36+ - name : Setup Node.js and deps
37+ uses : ./.github/actions/setup-deps-nightly
38+
39+ - name : Lint
40+ run : yarn lint
41+
42+ typecheck :
43+ needs : [install-cache-deps]
44+ runs-on : ubuntu-latest
45+ name : Typecheck
46+ steps :
47+ - name : Checkout
48+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49+
50+ - name : Setup Node.js and deps
51+ uses : ./.github/actions/setup-deps-nightly
52+
53+ - name : Typecheck
54+ run : yarn typecheck
55+
56+ test :
57+ needs : [install-cache-deps]
58+ runs-on : ubuntu-latest
59+ name : Test React 18
60+ steps :
61+ - name : Checkout
62+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
63+
64+ - name : Setup Node.js and deps
65+ uses : ./.github/actions/setup-deps-nightly
66+
67+ - name : Test
68+ run : yarn test:ci
You can’t perform that action at this time.
0 commit comments