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 [email protected] [email protected] react-native@next @react-native/babel-preset@next
33
+
34
+ shell : bash
Original file line number Diff line number Diff line change 1
- name : Setup deps (nightly)
1
+ name : Setup deps (RN nightly)
2
2
description : Setup Node.js and install dependencies
3
3
4
4
runs :
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 3
3
# Runs every night at 5 AM
4
4
schedule :
5
5
- cron : ' 0 5 * * *'
6
- # Manaual trigger
6
+ # Manual trigger
7
7
workflow_dispatch :
8
8
9
9
# Set minimal permissions by default
23
23
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
24
24
25
25
- name : Setup
26
- uses : ./.github/actions/setup-deps
26
+ uses : ./.github/actions/setup-deps-rn-nightly
27
27
28
28
lint :
29
29
needs : [install-cache-deps]
34
34
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
35
35
36
36
- name : Setup Node.js and deps
37
- uses : ./.github/actions/setup-deps-nightly
37
+ uses : ./.github/actions/setup-deps-rn- nightly
38
38
39
39
- name : Lint
40
40
run : yarn lint
48
48
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
49
49
50
50
- name : Setup Node.js and deps
51
- uses : ./.github/actions/setup-deps-nightly
51
+ uses : ./.github/actions/setup-deps-rn- nightly
52
52
53
53
- name : Typecheck
54
54
run : yarn typecheck
62
62
uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
63
63
64
64
- name : Setup Node.js and deps
65
- uses : ./.github/actions/setup-deps-nightly
65
+ uses : ./.github/actions/setup-deps-rn- nightly
66
66
67
67
- name : Test
68
68
run : yarn test:ci
You can’t perform that action at this time.
0 commit comments