@@ -3,18 +3,47 @@ name: CI
33on : ['push', 'pull_request']
44
55jobs :
6+ build :
7+ name : Build
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+ - name : yarn build
30+ run : yarn build
31+
32+ env :
33+ CI : true
34+
635 lint :
736 name : Lint
837 runs-on : ubuntu-latest
938
1039 steps :
11- - uses : actions/checkout@v3
12- - name : Use Node.js 18 .x
13- uses : actions/setup-node@v3
40+ - uses : actions/checkout@v4
41+ - name : Use Node.js 22 .x
42+ uses : actions/setup-node@v4
1443 with :
15- node-version : 18 .x
44+ node-version : 22 .x
1645
17- - uses : actions/cache@v3
46+ - uses : actions/cache@v4
1847 id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
1948 with :
2049 path : ' **/node_modules'
@@ -38,16 +67,16 @@ jobs:
3867
3968 strategy :
4069 matrix :
41- node-version : [14 .x, 16 .x, 18 .x]
70+ node-version : [18 .x, 20 .x, 22 .x]
4271
4372 steps :
44- - uses : actions/checkout@v3
73+ - uses : actions/checkout@v4
4574 - name : Use Node.js ${{ matrix.node-version }}
46- uses : actions/setup-node@v3
75+ uses : actions/setup-node@v4
4776 with :
4877 node-version : ${{ matrix.node-version }}
4978
50- - uses : actions/cache@v3
79+ - uses : actions/cache@v4
5180 id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
5281 with :
5382 path : ' **/node_modules'
6089 run : yarn install --frozen-lockfile --ignore-scripts
6190
6291 - name : yarn test
63- run : yarn test --reporters="default" --reporters="github-actions"
92+ run : yarn test --ci -- reporters="default" --reporters="github-actions"
6493
6594 env :
6695 CI : true
@@ -70,13 +99,13 @@ jobs:
7099 runs-on : ubuntu-latest
71100
72101 steps :
73- - uses : actions/checkout@v3
74- - name : Use Node.js 18 .x
75- uses : actions/setup-node@v3
102+ - uses : actions/checkout@v4
103+ - name : Use Node.js 22 .x
104+ uses : actions/setup-node@v4
76105 with :
77- node-version : 18 .x
106+ node-version : 22 .x
78107
79- - uses : actions/cache@v3
108+ - uses : actions/cache@v4
80109 id : yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
81110 with :
82111 path : ' **/node_modules'
@@ -100,8 +129,8 @@ jobs:
100129 name : Spellcheck
101130 runs-on : ubuntu-latest
102131 steps :
103- - uses : actions/checkout@v3
104- - uses : streetsidesoftware/cspell-action@main
132+ - uses : actions/checkout@v4
133+ - uses : streetsidesoftware/cspell-action@v6
105134 with :
106135 # Github token used to fetch the list of changed files in the commit.
107136 # Default: ${{ github.token }}
0 commit comments