File tree Expand file tree Collapse file tree 4 files changed +108
-6
lines changed Expand file tree Collapse file tree 4 files changed +108
-6
lines changed Original file line number Diff line number Diff line change 1+ name : Setup deps (RN @next)
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 Next
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@next @react-native/babel-preset@next
33+ yarn add -P react@19.1.0 react-test-renderer@19.1.0 react-native@next
34+ shell : bash
Original file line number Diff line number Diff line change 1- name : Setup deps (nightly)
1+ name : Setup deps (RN nightly)
22description : Setup Node.js and install dependencies
33
44runs :
Original file line number Diff line number Diff line change 1+ name : React Native Next
2+ on :
3+ # Runs every night at 2 AM
4+ schedule :
5+ - cron : ' 0 2 * * *'
6+ # Manual 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-rn-next
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-rn-next
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-rn-next
52+
53+ - name : Typecheck
54+ run : yarn typecheck
55+
56+ test :
57+ needs : [install-cache-deps]
58+ runs-on : ubuntu-latest
59+ name : Test
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-rn-next
66+
67+ - name : Test
68+ run : yarn test:ci
Original file line number Diff line number Diff line change 33 # Runs every night at 5 AM
44 schedule :
55 - cron : ' 0 5 * * *'
6- # Manaual trigger
6+ # Manual trigger
77 workflow_dispatch :
88
99# Set minimal permissions by default
2323 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2424
2525 - name : Setup
26- uses : ./.github/actions/setup-deps
26+ uses : ./.github/actions/setup-deps-rn-nightly
2727
2828 lint :
2929 needs : [install-cache-deps]
3434 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3535
3636 - name : Setup Node.js and deps
37- uses : ./.github/actions/setup-deps-nightly
37+ uses : ./.github/actions/setup-deps-rn- nightly
3838
3939 - name : Lint
4040 run : yarn lint
4848 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4949
5050 - name : Setup Node.js and deps
51- uses : ./.github/actions/setup-deps-nightly
51+ uses : ./.github/actions/setup-deps-rn- nightly
5252
5353 - name : Typecheck
5454 run : yarn typecheck
6262 uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6363
6464 - name : Setup Node.js and deps
65- uses : ./.github/actions/setup-deps-nightly
65+ uses : ./.github/actions/setup-deps-rn- nightly
6666
6767 - name : Test
6868 run : yarn test:ci
You can’t perform that action at this time.
0 commit comments