@@ -16,17 +16,20 @@ jobs:
1616 - name : Checkout
1717 uses : actions/checkout@v4
1818
19+ - name : Install pnpm
20+ uses : pnpm/action-setup@v4
21+
1922 - name : Set up Node
2023 uses : actions/setup-node@v4
2124 with :
22- cache : npm
25+ cache : ' pnpm '
2326 node-version-file : ' .nvmrc'
2427
2528 - name : Install dependencies
26- run : npm install
29+ run : pnpm install
2730
2831 - name : Run script
29- run : npm run ${{ matrix.validation-script }}
32+ run : pnpm run ${{ matrix.validation-script }}
3033
3134 tests :
3235 name : Tests (Node v${{ matrix.node }} - ESLint v${{ matrix.eslint }})
@@ -35,46 +38,31 @@ jobs:
3538 strategy :
3639 fail-fast : false
3740 matrix :
38- node : [12.22.0, 12, 14.17.0, 14, 16, 17, 18, 19, 20, 22]
39- eslint : [7.5, 7, 8, 9]
40- exclude :
41- # eslint@9 doesn't support < Node v18
42- - node : 17
43- eslint : 9
44- - node : 16
45- eslint : 9
46- - node : 14
47- eslint : 9
48- - node : 14.17.0
49- eslint : 9
50- - node : 12
51- eslint : 9
52- - node : 12.22.0
53- eslint : 9
41+ node : [18.18.0, 18, 20.9.0, 20, 21.1.0, 21, 22, 23]
42+ eslint : [8.57.0, 8, 9]
5443 steps :
5544 - name : Checkout
5645 uses : actions/checkout@v4
5746
47+ - name : Install pnpm
48+ uses : pnpm/action-setup@v4
49+
5850 - name : Set up Node
5951 uses : actions/setup-node@v4
6052 with :
61- cache : npm
53+ cache : ' pnpm '
6254 node-version : ${{ matrix.node }}
6355
6456 - name : Install dependencies
65- run : npm install
66-
67- # see https://github.com/npm/cli/issues/7349
68- - if : ${{ matrix.eslint == 9 }}
69- run : npm un @typescript-eslint/eslint-plugin eslint-plugin-jest eslint-doc-generator
57+ run : pnpm install
7058
7159 - name : Install ESLint v${{ matrix.eslint }}
72- run : npm install --no-save --force eslint@${{ matrix.eslint }}
60+ run : pnpm add eslint@${{ matrix.eslint }}
7361
7462 - name : Run tests
75- run : npm run test:ci
63+ run : pnpm run test:ci
7664
7765 - name : Upload coverage reports to Codecov
78- uses : codecov/codecov-action@v4
66+ uses : codecov/codecov-action@v5
7967 env :
8068 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
0 commit comments