44 push :
55 branches :
66 - main
7- - " v* "
8- pull_request :
7+ - master
8+ pull_request : {}
99
10- env :
11- FORCE_COLOR : 1
12- PNPM_VERSION : 6.15.0
10+ concurrency :
11+ group : ci-${{ github.head_ref || github.ref }}
12+ cancel-in-progress : true
1313
1414jobs :
1515 lint :
1616 name : Linting
1717 runs-on : ubuntu-latest
18+ timeout-minutes : 5
1819
1920 steps :
20- - uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
21-
22- - uses : pnpm/action-setup@v2.4.1
23- with :
24- version : ${{ env.PNPM_VERSION }}
25-
26- - uses : actions/setup-node@v3
21+ - uses : actions/checkout@v7
22+ - uses : pnpm/action-setup@v6
23+ - uses : actions/setup-node@v6
2724 with :
28- node-version : 14 .x
25+ node-version : 22 .x
2926 cache : ' pnpm'
30-
3127 - run : pnpm install
3228 - run : pnpm lint
3329
3430 test-node :
31+ timeout-minutes : 5
3532 strategy :
33+ fail-fast : false
3634 matrix :
37- node-version : [12 .x, 14 .x, 16 .x]
35+ node-version : [22 .x, 24 .x, 26 .x]
3836
3937 name : Tests (Node.js ${{ matrix.node-version }})
4038 runs-on : ubuntu-latest
4139
4240 steps :
43- - uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
44-
45- - uses : pnpm/action-setup@v2.4.1
46- with :
47- version : ${{ env.PNPM_VERSION }}
48-
49- - uses : actions/setup-node@v3
41+ - uses : actions/checkout@v7
42+ - uses : pnpm/action-setup@v6
43+ - uses : actions/setup-node@v6
5044 with :
5145 node-version : ${{ matrix.node-version }}
5246 cache : ' pnpm'
53-
5447 - run : pnpm install
5548 - run : pnpm test -- --coverage
5649
5750 test-eslint :
51+ timeout-minutes : 5
5852 strategy :
5953 matrix :
6054 eslint-version : [7.0.0]
@@ -63,19 +57,12 @@ jobs:
6357 runs-on : ubuntu-latest
6458
6559 steps :
66- - uses : actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4
67-
68- - uses : pnpm/action- setup@v2.4.1
60+ - uses : actions/checkout@v7
61+ - uses : pnpm/action-setup@v6
62+ - uses : actions/ setup-node@v6
6963 with :
70- version : ${{ env.PNPM_VERSION }}
71-
72- - uses : actions/setup-node@v3
73- with :
74- node-version : 14.x
75- # cache disabled because the extra `pnpm add` might conflict with the
76- # `test-node` job cache, and there is currently no way to influence
77- # the cache key
78- # cache: 'pnpm'
64+ node-version : 22.x
65+ cache : ' pnpm'
7966
8067 - run : pnpm install
8168 - run : pnpm add --save-dev eslint@${{ matrix.eslint-version }}
0 commit comments