Skip to content

Commit 9e723a1

Browse files
committed
chore: update GitHub Actions workflow to use latest actions and improve dependency installation
1 parent decce9d commit 9e723a1

File tree

1 file changed

+7
-14
lines changed

1 file changed

+7
-14
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,18 @@ jobs:
99
timeout-minutes: 60
1010
runs-on: ubuntu-latest
1111

12+
steps:
13+
timeout-minutes: 60
14+
runs-on: ubuntu-latest
1215
steps:
13-
- name: Checkout code
14-
uses: actions/checkout@v3
15-
with:
16-
ref: ${{ github.head_ref }}
17-
token: ${{ secrets.GITHUB_TOKEN }}
18-
19-
- uses: pnpm/action-setup@v2
20-
with:
21-
version: 8
16+
- uses: actions/checkout@v4
2217

23-
- name: Setup Node.js
24-
uses: actions/setup-node@v3
18+
- uses: actions/setup-node@v4
2519
with:
26-
node-version: '18'
27-
cache: 'pnpm'
20+
node-version: lts/*
2821

2922
- name: Install dependencies
30-
run: pnpm install
23+
run: npm install -g pnpm && pnpm install
3124

3225
- name: Install Playwright Browsers
3326
run: pnpm exec playwright install --with-deps

0 commit comments

Comments
 (0)