-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (53 loc) · 1.43 KB
/
tests-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
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
name: Playwright E2E Tests
on:
push:
branches:
- main
- development
paths:
- 'web/**'
- '.github/workflows/tests-e2e.yml'
pull_request:
branches:
- main
- development
jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
defaults:
run:
working-directory: './web'
steps:
- uses: actions/checkout@v4
with:
lfs: true
- uses: actions/setup-node@v4
with:
node-version: 20.15.0
- name: Enable pnpm
run: corepack enable pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright Browsers
run: pnpm playwright install --with-deps
- name: Run Playwright tests
env:
NEXT_PUBLIC_CONTRACT_ADDRESS: ${{ vars.NEXT_PUBLIC_CONTRACT_ADDRESS }}
NEXT_PUBLIC_THIRDWEB_ID: ${{ vars.NEXT_PUBLIC_THIRDWEB_ID }}
NEXT_PUBLIC_NET: ${{ vars.NEXT_PUBLIC_NET }}
run: pnpm test:e2e
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-coverage
path: web/playwright-coverage/
retention-days: 30
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
flags: e2e
name: e2e-tests
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true