Skip to content

Commit b9c13fc

Browse files
authored
chore: rework CI for easier cache handling (#42)
1 parent 9db831a commit b9c13fc

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

‎.github/workflows/main.yml‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,26 +18,18 @@ jobs:
1818

1919
strategy:
2020
fail-fast: false
21-
matrix:
22-
node: [22]
2321

2422
steps:
2523
- name: Clone repository
2624
uses: actions/checkout@v5
2725
with:
2826
fetch-depth: 3
2927

30-
- uses: actions/cache@v4
31-
with:
32-
path: ~/.npm
33-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
34-
restore-keys: |
35-
${{ runner.os }}-node-
36-
3728
- name: Set Node.js version
3829
uses: actions/setup-node@v5
3930
with:
40-
node-version: ${{ matrix.node }}
31+
node-version: 24
32+
cache: 'npm'
4133

4234
- run: node --version
4335
- run: npm --version
@@ -54,4 +46,4 @@ jobs:
5446
- name: Upload test coverage to Codecov
5547
uses: codecov/codecov-action@v5
5648
env:
57-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
49+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)