1- name : ' Verify, build & test'
1+ name : ' CI build & test'
22
33on :
44 push :
99permissions : read-all
1010
1111jobs :
12- job-verify-formatting :
12+ ' Verify Formatting ' :
1313 permissions :
1414 contents : read
1515 runs-on : blacksmith-4vcpu-ubuntu-2204
@@ -26,14 +26,22 @@ jobs:
2626 with :
2727 node-version : ' 24.x'
2828
29+ - name : Cache Yarn dependencies
30+ uses : actions/cache@13aacd865c20de90e7f32385cc9f60de075b8dc3 # v4.0.0
31+ with :
32+ path : ' **/node_modules'
33+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
34+ restore-keys : |
35+ ${{ runner.os }}-yarn-
36+
2937 - name : Install dependencies
3038 run : yarn install --frozen-lockfile
3139
3240 - name : Verify formatting
33- run : yarn test-format-only
41+ run : yarn test-format-all
3442
35- job-build :
36- needs : [job-verify-formatting ]
43+ ' Build ' :
44+ needs : ['Verify Formatting' ]
3745 permissions :
3846 contents : write
3947 runs-on : blacksmith-4vcpu-ubuntu-2204
5058 with :
5159 node-version : ' 24.x'
5260
61+ - name : Cache Yarn dependencies
62+ uses : actions/cache@13aacd865c20de90e7f32385cc9f60de075b8dc3 # v4.0.0
63+ with :
64+ path : ' **/node_modules'
65+ key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
66+ restore-keys : |
67+ ${{ runner.os }}-yarn-
68+
5369 - name : Install dependencies
5470 run : yarn install --frozen-lockfile
5571
@@ -69,14 +85,14 @@ jobs:
6985 name : node_modules
7086 path : node_modules.tar
7187
72- job-test-node :
88+ ' Test Node ' :
7389 permissions :
7490 contents : read
75- needs : [job-verify-formatting, job-build ]
91+ needs : ['Verify Formatting', 'Build' ]
7692 runs-on : blacksmith-4vcpu-ubuntu-2204
7793 strategy :
7894 matrix :
79- node-version : [16.x, 18.x, 20.x, 22.x, 23.x, 24.x, latest]
95+ node-version : [16.x, 18.x, 20.x, 22.x, 24.x] # Dropped '23.x' (EOL) and ' latest' for stability
8096 steps :
8197 - name : Harden Runner
8298 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
@@ -106,10 +122,10 @@ jobs:
106122 - name : Run Node tests
107123 run : yarn test-ci
108124
109- job-test-browser :
125+ ' Test Browser ' :
110126 permissions :
111127 contents : read
112- needs : [job-verify-formatting, job-build ]
128+ needs : ['Verify Formatting', 'Build' ]
113129 runs-on : blacksmith-4vcpu-ubuntu-2204
114130 steps :
115131 - name : Harden Runner
0 commit comments