Skip to content

Commit 656be37

Browse files
chore: setup pnpm workflow
1 parent d7b6d54 commit 656be37

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.github/workflows/build-test.yaml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,28 @@ on:
1010
- fix-eslint
1111

1212
jobs:
13-
build:
13+
build-lint:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
21+
- name: Enable corepack
22+
run: corepack enable pnpm
23+
1724
- name: Install dependencies
18-
run: pnpm install
25+
run: pnpm install --frozen-lockfile
1926

2027
- name: Run lint
21-
run: pnpm check:lint
28+
run: pnpm run check:lint
2229

2330
- name: Run format
24-
run: pnpm check:format
31+
run: pnpm run check:format
32+
33+
- name: Run build
34+
run: pnpm run build
2535

2636
- name: Run tests
27-
run: pnpm test
37+
run: pnpm run test

0 commit comments

Comments
 (0)