Skip to content

Commit 91b9c87

Browse files
committed
fix pnpm
1 parent 82f0a66 commit 91b9c87

1 file changed

Lines changed: 23 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,28 @@ jobs:
1414
uses: actions/setup-node@v3
1515
with:
1616
node-version: 18
17-
cache: "npm"
17+
18+
# Setup pnpm
19+
- name: Setup pnpm
20+
uses: pnpm/action-setup@v2
21+
with:
22+
version: 8
23+
run_install: false
24+
25+
# Get pnpm store directory
26+
- name: Get pnpm store directory
27+
shell: bash
28+
run: |
29+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
30+
31+
# Setup pnpm cache
32+
- uses: actions/cache@v3
33+
name: Setup pnpm cache
34+
with:
35+
path: ${{ env.STORE_PATH }}
36+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
37+
restore-keys: |
38+
${{ runner.os }}-pnpm-store-
1839
1940
# Setup Go for backend tests
2041
- name: Setup Go
@@ -24,7 +45,7 @@ jobs:
2445

2546
# Install dependencies
2647
- name: Install dependencies
27-
run: npm ci && cd frontend && npm ci && cd ..
48+
run: pnpm install --frozen-lockfile
2849

2950
# Run tests with coverage
3051
- name: Run tests with coverage

0 commit comments

Comments
 (0)