Skip to content

Commit 100cfba

Browse files
GH playwright workflow 'ignore-snapshots'
1 parent 3c612bc commit 100cfba

1 file changed

Lines changed: 32 additions & 20 deletions

File tree

.github/workflows/playwright.yml

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,39 @@
11
name: Playwright Tests
22
on:
33
push:
4-
branches: [ main, master ]
4+
branches:
5+
- "*"
6+
57
pull_request:
6-
branches: [ main, master ]
8+
branches:
9+
- "*"
710
jobs:
811
test:
9-
timeout-minutes: 60
10-
runs-on: macos-latest
12+
runs-on: ubuntu-latest
13+
timeout-minutes: 15
1114
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 install
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: always()
24-
with:
25-
name: playwright-report
26-
path: playwright-report/
27-
retention-days: 30
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node
19+
uses: actions/setup-node@v4
20+
with:
21+
cache: pnpm
22+
node-version-file: .nvmrc
23+
check-latest: true
24+
25+
- name: Install deps
26+
run: |
27+
npm install
28+
npx playwright install --with-deps
29+
30+
- name: Test
31+
run: npx playwright test --ignore-snapshots
32+
33+
- name: Upload Playwright Report
34+
uses: actions/upload-artifact@v4
35+
if: always()
36+
with:
37+
name: playwright-report
38+
path: playwright-report/
39+
retention-days: 30

0 commit comments

Comments
 (0)