Skip to content

Commit 36214fc

Browse files
committed
fix pnpm issues
1 parent dd77ae8 commit 36214fc

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

.github/actions/install/action.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,18 @@ description: "Install cached dependencies"
44
runs:
55
using: "composite"
66
steps:
7+
- uses: pnpm/action-setup@v3
8+
with:
9+
version: 9
10+
run_install: false
711

8-
- uses: actions/cache@v4
9-
shell: bash
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: '20'
15+
cache: 'pnpm'
16+
17+
- name: Restore node_modules cache
18+
uses: actions/cache@v4
1019
id: pnpm-cache
1120
with:
1221
path: '**/node_modules'

.github/workflows/test.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Test & Build
22

3-
on: [push]
3+
on: [pull_request]
44

55
concurrency:
66
group: ${{ github.workflow }}-${{ github.ref }}
@@ -12,18 +12,13 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v4
1414

15-
- uses: actions/setup-node@v4
16-
with:
17-
node-version: 20
18-
cache: 'pnpm'
19-
2015
- uses: ./.github/actions/install
2116

2217
- name: Test with Coverage
2318
run: pnpm run coverage
2419

2520
- name: ESLint
26-
run: pnpm run eslint
21+
run: pnpm run lint
2722

2823
- name: Report Coverage
2924
uses: coverallsapp/github-action@v2
@@ -35,11 +30,6 @@ jobs:
3530
steps:
3631
- uses: actions/checkout@v4
3732

38-
- uses: actions/setup-node@v4
39-
with:
40-
node-version: 20
41-
cache: 'pnpm'
42-
4333
- uses: ./.github/actions/install
4434

4535
- name: Build Dist

0 commit comments

Comments
 (0)