@@ -14,15 +14,27 @@ permissions:
1414 contents : read
1515
1616jobs :
17- main :
17+ test :
18+ name : Test on ${{ matrix.os }} with Node.js ${{ matrix.node-version }}
19+
1820 runs-on : ${{ matrix.os }}
1921
2022 strategy :
2123 matrix :
22- os : [ubuntu-latest, windows-latest, macOS-latest]
23- node-version : [16, 18, 20, 22]
24+ os :
25+ - macOS-latest
26+ - ubuntu-latest
27+ - windows-latest
28+ node-version :
29+ - 16
30+ - 18
31+ - 20
32+ - 22
2433 fail-fast : false
2534
35+ env :
36+ YARN_IGNORE_NODE : 1
37+
2638 steps :
2739 - uses : actions/checkout@v4
2840 with :
@@ -31,33 +43,33 @@ jobs:
3143 - uses : actions/setup-node@v4
3244 with :
3345 node-version : ${{ matrix.node-version }}
34- cache : npm
46+ cache : yarn
3547
36- - name : npm ci
37- run : npm ci --no-audit
48+ - name : Install Dependencies
49+ run : yarn --immutable
3850
3951 - name : Jest - flat
40- run : npx jest
52+ run : yarn test: jest
4153 env :
4254 ESLINT_CONFIG_PRETTIER_NO_DEPRECATED : " true"
4355
4456 - name : Jest - eslintrc
45- run : npx jest
57+ run : yarn test: jest
4658 env :
4759 ESLINT_USE_FLAT_CONFIG : " false"
4860
4961 - name : CLI sanity - flat
50- run : npm run test:cli-sanity
62+ run : yarn test:cli-sanity
5163
5264 - name : CLI sanity - eslintrc
53- run : npm run test:cli-sanity
65+ run : yarn test:cli-sanity
5466 env :
5567 ESLINT_USE_FLAT_CONFIG : " false"
5668
5769 - name : CLI sanity warning - flat
58- run : npm run test:cli-sanity-warning
70+ run : yarn test:cli-sanity-warning
5971
6072 - name : CLI sanity warning - eslintrc
61- run : npm run test:cli-sanity-warning
73+ run : yarn test:cli-sanity-warning
6274 env :
6375 ESLINT_USE_FLAT_CONFIG : " false"
0 commit comments