Skip to content

Commit ac25143

Browse files
authored
Update Playwright workflow to allow tests to continue on error (#55)
1 parent 1cf87a6 commit ac25143

1 file changed

Lines changed: 45 additions & 44 deletions

File tree

.github/workflows/playwright-tests.yml

Lines changed: 45 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -5,54 +5,55 @@ on:
55
workflow_dispatch:
66
# Also run on push to main and pull requests
77
push:
8-
branches: [ main ]
8+
branches: [main]
99
pull_request:
10-
branches: [ main ]
10+
branches: [main]
1111

1212
jobs:
1313
test:
1414
timeout-minutes: 60
1515
runs-on: ubuntu-latest
16-
16+
1717
steps:
18-
- uses: actions/checkout@v4
19-
20-
- name: Setup Node.js
21-
uses: actions/setup-node@v4
22-
with:
23-
node-version: lts/*
24-
cache: 'npm'
25-
26-
- name: Install dependencies
27-
run: npm ci
28-
29-
- name: Run ESLint
30-
run: npm run lint
31-
32-
- name: Check TypeScript compilation
33-
run: npx tsc --noEmit
34-
35-
- name: Install Playwright Browsers
36-
run: npx playwright install chromium
37-
38-
- name: Build the application
39-
run: npm run build
40-
41-
- name: Run Playwright tests
42-
run: npm run test:e2e
43-
44-
- name: Upload Playwright Report
45-
uses: actions/upload-artifact@v4
46-
if: always()
47-
with:
48-
name: playwright-report
49-
path: playwright-report/
50-
retention-days: 30
51-
52-
- name: Upload Test Results
53-
uses: actions/upload-artifact@v4
54-
if: always()
55-
with:
56-
name: test-results
57-
path: test-results/
58-
retention-days: 30
18+
- uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: lts/*
24+
cache: "npm"
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Run ESLint
30+
run: npm run lint
31+
32+
- name: Check TypeScript compilation
33+
run: npx tsc --noEmit
34+
35+
- name: Install Playwright Browsers
36+
run: npx playwright install chromium
37+
38+
- name: Build the application
39+
run: npm run build
40+
41+
- name: Run Playwright tests
42+
continue-on-error: true
43+
run: npm run test:e2e
44+
45+
- name: Upload Playwright Report
46+
uses: actions/upload-artifact@v4
47+
if: always()
48+
with:
49+
name: playwright-report
50+
path: playwright-report/
51+
retention-days: 30
52+
53+
- name: Upload Test Results
54+
uses: actions/upload-artifact@v4
55+
if: always()
56+
with:
57+
name: test-results
58+
path: test-results/
59+
retention-days: 30

0 commit comments

Comments
 (0)