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
33on : ['push', 'pull_request']
44
55jobs :
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+
632 build :
733 name : Build
834 runs-on : ubuntu-latest
35+ needs : [dependencies]
936
1037 steps :
1138 - uses : actions/checkout@v4
3562 lint :
3663 name : Lint
3764 runs-on : ubuntu-latest
65+ needs : [dependencies]
3866
3967 steps :
4068 - uses : actions/checkout@v4
6492 test :
6593 name : Test
6694 runs-on : ubuntu-latest
95+ needs : [dependencies]
6796
6897 strategy :
6998 matrix :
97126 coverage :
98127 name : Coverage
99128 runs-on : ubuntu-latest
129+ needs : [dependencies]
100130
101131 steps :
102132 - uses : actions/checkout@v4
You can’t perform that action at this time.
0 commit comments