-
Notifications
You must be signed in to change notification settings - Fork 93
36 lines (34 loc) · 1.09 KB
/
e2e.yml
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
name: Mafs End-to-End (E2E) Tests
on:
pull_request:
types: [labeled, synchronize]
jobs:
e2e-tests:
runs-on: ubuntu-latest
timeout-minutes: 5
if: contains(github.event.pull_request.labels.*.name, 'run-e2e-tests')
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
cache: "pnpm"
- run: pnpm install
- name: Install Playwright Browsers
run: pnpm playwright install --with-deps
- name: Get Playwright Version
id: playwright-version
run: echo ::set-output name=playwright-version::$(pnpm playwright --version)
- uses: actions/cache@v2
with:
path: ~/.cache/ms-playwright
key: ${{ runner.os }}-playwright-${{ steps.playwright-version.outputs.playwright-version }}
restore-keys: |
${{ runner.os }}-playwright-
- run: pnpm test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30