Skip to content

Commit 994c7d1

Browse files
Merge pull request #1258 from schalkneethling/chore-update-ci
chore: updates to playwright ci config
2 parents 413cd95 + 890772b commit 994c7d1

2 files changed

Lines changed: 30 additions & 19 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 27 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,35 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches: [main]
55
pull_request:
6-
branches: [ main, master ]
6+
branches: [main]
77
jobs:
88
test:
9-
timeout-minutes: 60
9+
timeout-minutes: 15
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: lts/*
16-
- name: Install dependencies
17-
run: npm ci
18-
- name: Install Playwright Browsers
19-
run: npx playwright install --with-deps
20-
- name: Run Playwright tests
21-
run: npx playwright test
22-
- uses: actions/upload-artifact@v4
23-
if: ${{ !cancelled() }}
24-
with:
25-
name: playwright-report
26-
path: playwright-report/
27-
retention-days: 30
12+
- uses: actions/checkout@v4
13+
14+
- name: Set up pnpm
15+
uses: pnpm/action-setup@v4
16+
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: 24
20+
21+
- name: Install dependencies
22+
run: pnpm install --frozen-lockfile
23+
24+
- name: Install Playwright Browsers
25+
run: npx playwright install --with-deps
26+
27+
- name: Run Playwright tests
28+
run: npx playwright test
29+
30+
- uses: actions/upload-artifact@v4
31+
if: ${{ !cancelled() }}
32+
with:
33+
name: playwright-report
34+
path: playwright-report/
35+
retention-days: 7

pnpm-workspace.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
onlyBuiltDependencies:
2+
- '@google/genai'
23
- esbuild
4+
- koffi
5+
- protobufjs
36
- sharp

0 commit comments

Comments
 (0)