Repository navigation
55 lines (45 loc) · 1.47 KB
/
Copy pathe2e.yml
File metadata and controls
55 lines (45 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: End-to-End Tests
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read
jobs:
playwright:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout code
uses: actions/checkout@v7.0.1
- name: Set up Node.js
uses: actions/setup-node@v7.1.0
with:
node-version: '24'
# Building and pulling the images is kept apart from the test steps so
# their logs show little more than the Playwright results.
- name: Prepare Docker E2E images
timeout-minutes: 20
run: npm run test:e2e:docker:prepare
# The Playwright container installs its own dependencies and browsers.
- name: Run Docker E2E tests
timeout-minutes: 10
run: npm run test:e2e:docker:test
- name: Upload Playwright report and failure artifacts
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v7.0.2
with:
name: playwright-results
path: |
tests/e2e/playwright-report/
tests/e2e/test-results/
if-no-files-found: ignore
retention-days: 7
- name: Remove Docker E2E stack
if: always()
run: docker compose -p lb-e2e-run -f tests/e2e/docker/docker-compose.yml down -v --remove-orphans