-
-
Notifications
You must be signed in to change notification settings - Fork 171
57 lines (54 loc) · 1.6 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: e2e Tests
on:
push:
branches: [main]
paths-ignore:
- 'docs/**' # only trigger build if a file outside of /docs was changed
- '_locales/*.xml'
- '.vscode/**'
- 'README_ASSETS/**'
- 'README.md'
pull_request:
paths-ignore:
- 'docs/**' # only trigger build if a file outside of /docs was changed
- '_locales/*.xml'
- '.vscode/**'
- 'README_ASSETS/**'
- 'README.md'
jobs:
test:
name: E2E Tests
environment: test
env:
CI: true
NODE_ENV: test
PRIVATE_CERTIFICATE_KEY: ${{ secrets.PRIVATE_CERTIFICATE_KEY }}
PRIVATE_CERTIFICATE_CERT: ${{ secrets.PRIVATE_CERTIFICATE_CERT }}
VERSION_INFO_GIT_REF: ${{ github.ref }}
DC_ACCOUNTS_DIR: ../../e2e-tests/data/accounts
timeout-minutes: 60
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Install dependencies
run: npm install -g pnpm && pnpm install
- name: Install Playwright Browsers
working-directory: ./packages/e2e-tests
run: npx playwright install --with-deps
- name: create data dir
run: mkdir -p packages/target-browser/data
- name: Run e2e tests
run: pnpm e2e --project Chrome
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: e2e-report
path: packages/e2e-tests/playwright-report/ packages/e2e-tests/test-results/
retention-days: 30