-
Notifications
You must be signed in to change notification settings - Fork 200
85 lines (73 loc) · 2.42 KB
/
pd-e2e-test.yaml
File metadata and controls
85 lines (73 loc) · 2.42 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# Protocol Designer E2E Tests using Playwright
name: "PD E2E Tests"
on:
pull_request:
paths:
- 'protocol-designer/**'
- 'step-generation/**'
- 'shared-data/**'
- 'components/**'
- 'package.json'
- '.github/workflows/pd-test-build-deploy.yaml'
- '.github/actions/js/setup/action.yml'
- '.github/actions/git/resolve-tag/action.yml'
- '.github/actions/environment/complex-variables/action.yml'
- 'scripts/static-deploy/**'
- 'scripts/git-version-protocol-designer.mjs'
- '.github/workflows/pd-e2e-test.yaml'
- 'e2e-testing/tests/pd/**'
- 'e2e-testing/fixtures/**'
- 'e2e-testing/uv.lock'
- 'e2e-testing/pyproject.toml'
- 'e2e-testing/conftest.py'
- 'e2e-testing/eyes.py'
- 'e2e-testing/pytest.ini'
- 'e2e-testing/automation/pd_pages/**'
workflow_dispatch: {}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
env:
CI: "true"
jobs:
e2e-test-local:
name: "E2E tests against local build"
runs-on: "ubuntu-24.04"
timeout-minutes: 15
steps:
- name: "Checkout Repository"
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
fetch-depth: 0 # Need full history for git version script
- name: "Setup JS Environment"
uses: ./.github/actions/js/setup
- name: "Setup UV for E2E tests"
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7
with:
python-version: "3.12"
cache-dependency-glob: |
e2e-testing/uv.lock
e2e-testing/pyproject.toml
- name: "Install E2E test dependencies"
working-directory: e2e-testing
run: make setup
- name: "Install Playwright browser"
working-directory: e2e-testing
run: make test-setup
- name: "Run E2E tests against local build"
working-directory: e2e-testing
env:
APPLITOOLS_API_KEY: ${{ secrets.APPLITOOLS_API_KEY }}
run: make test-pd-local
- name: "Upload test results"
if: always()
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5
with:
name: playwright-results-local
path: |
e2e-testing/test-results/
retention-days: 7
if-no-files-found: warn