Skip to content

Commit 2edf023

Browse files
committed
Update GitHub Actions
1 parent 0926e50 commit 2edf023

2 files changed

Lines changed: 9 additions & 28 deletions

File tree

.github/workflows/check.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,16 @@ on:
88

99
jobs:
1010
main:
11-
runs-on: ${{ matrix.os }}
12-
13-
strategy:
14-
matrix:
15-
os: [ubuntu-latest]
16-
node-version: [22.x]
11+
runs-on: ubuntu-latest
1712

1813
steps:
19-
- uses: actions/checkout@v4
20-
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: "${{ matrix.node-version }}"
14+
- uses: actions/checkout@v6
2415

25-
- id: cache-node_modules
26-
uses: actions/cache@v4
16+
- uses: actions/setup-node@v6
2717
with:
28-
path: node_modules
29-
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package.json', 'package-lock.json') }}
18+
node-version: 24
3019

31-
- if: steps.cache-node_modules.outputs.cache-hit != 'true'
32-
run: npm ci --no-audit
20+
- run: npm ci --no-audit
3321

3422
- run: npm run build
3523

.github/workflows/test.yml

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,16 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, macOS-latest, windows-latest]
16-
node-version: [18.x, 20.x, 22.x]
16+
node-version: [20, 22, 24]
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020

21-
- uses: actions/setup-node@v4
21+
- uses: actions/setup-node@v6
2222
with:
2323
node-version: "${{ matrix.node-version }}"
2424

25-
- id: cache-node_modules
26-
uses: actions/cache@v4
27-
with:
28-
path: node_modules
29-
key: node_modules-${{ matrix.os }}-${{ matrix.node-version }}-${{ hashFiles('package.json', 'package-lock.json') }}
30-
31-
- if: steps.cache-node_modules.outputs.cache-hit != 'true'
32-
run: npm ci --no-audit
25+
- run: npm ci --no-audit
3326

3427
- run: npm run build
3528

0 commit comments

Comments
 (0)