Skip to content

Commit 9d3a188

Browse files
committed
chore: use pnpm instead of npm
1 parent 9b97b37 commit 9d3a188

4 files changed

Lines changed: 497 additions & 649 deletions

File tree

‎.github/workflows/nodejs.yml‎

Lines changed: 45 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
1-
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3-
4-
name: Node.js CI
5-
6-
on:
7-
push:
8-
branches-ignore:
9-
- 'pulls/**'
10-
- 'dependabot/**'
11-
pull_request:
12-
13-
jobs:
14-
lint:
15-
name: Linting check
16-
runs-on: ubuntu-latest
17-
steps:
18-
- uses: actions/checkout@v6
19-
- name: Code linting
20-
uses: actions/setup-node@v6
21-
with:
22-
node-version: 24.x
23-
cache: 'npm'
24-
- run: npm ci
25-
- run: npm run lint
26-
27-
tests:
28-
name: Unit tests
29-
runs-on: ubuntu-latest
30-
strategy:
31-
matrix:
32-
node-version: [24.x]
33-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
34-
steps:
35-
- uses: actions/checkout@v6
36-
- name: Use Node.js ${{ matrix.node-version }}
37-
uses: actions/setup-node@v6
38-
with:
39-
node-version: ${{ matrix.node-version }}
40-
cache: 'npm'
41-
- run: npm ci
42-
- run: npm test
1+
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Node.js CI
5+
6+
on:
7+
push:
8+
branches-ignore:
9+
- 'pulls/**'
10+
- 'dependabot/**'
11+
pull_request:
12+
13+
jobs:
14+
lint:
15+
name: Linting check
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v7
19+
- uses: pnpm/action-setup@v6
20+
- uses: actions/setup-node@v7
21+
with:
22+
node-version: 24.x
23+
cache: pnpm
24+
- shell: bash
25+
run: pnpm install
26+
27+
- run: pnpm lint
28+
29+
tests:
30+
name: Unit tests
31+
runs-on: ubuntu-latest
32+
strategy:
33+
matrix:
34+
node-version: [24.x]
35+
steps:
36+
- uses: actions/checkout@v7
37+
- uses: pnpm/action-setup@v6
38+
- uses: actions/setup-node@v7
39+
with:
40+
node-version: ${{ matrix.node-version }}
41+
cache: pnpm
42+
- shell: bash
43+
run: pnpm install
44+
45+
- run: pnpm test

0 commit comments

Comments
 (0)