File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,36 @@ name: CI
3
3
on : ['push', 'pull_request']
4
4
5
5
jobs :
6
+ dependencies :
7
+ name : Dependencies
8
+ runs-on : ubuntu-latest
9
+
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ - name : Use Node.js 22.x
13
+ uses : actions/setup-node@v4
14
+ with :
15
+ node-version : 22.x
16
+
17
+ - uses : actions/cache@v4
18
+ id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
19
+ with :
20
+ path : ' **/node_modules'
21
+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22
+ restore-keys : |
23
+ ${{ runner.os }}-yarn-
24
+
25
+ - name : yarn install
26
+ if : steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
27
+ run : yarn install --frozen-lockfile --ignore-scripts
28
+
29
+ env :
30
+ CI : true
31
+
6
32
build :
7
33
name : Build
8
34
runs-on : ubuntu-latest
35
+ needs : [dependencies]
9
36
10
37
steps :
11
38
- uses : actions/checkout@v4
35
62
lint :
36
63
name : Lint
37
64
runs-on : ubuntu-latest
65
+ needs : [dependencies]
38
66
39
67
steps :
40
68
- uses : actions/checkout@v4
64
92
test :
65
93
name : Test
66
94
runs-on : ubuntu-latest
95
+ needs : [dependencies]
67
96
68
97
strategy :
69
98
matrix :
97
126
coverage :
98
127
name : Coverage
99
128
runs-on : ubuntu-latest
129
+ needs : [dependencies]
100
130
101
131
steps :
102
132
- uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments