-
Notifications
You must be signed in to change notification settings - Fork 19
48 lines (48 loc) · 1.39 KB
/
frontend-tests.yaml
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
---
jobs:
playwright-tests:
defaults:
run:
working-directory: 'src/typescript'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v4'
with:
submodules: 'false'
- uses: 'actions/setup-node@v4'
with:
node-version-file: 'src/typescript/.node-version'
- name: 'Install dependencies'
run: 'npm install -g pnpm && pnpm install'
- env:
GITHUB_ACCESS_TOKEN: '${{ secrets.TRADING_VIEW_REPO_ACCESS_TOKEN }}'
TRADING_VIEW_REPO_OWNER: '${{ secrets.TRADING_VIEW_REPO_OWNER }}'
name: 'Clone submodule'
run: 'pnpm run submodule'
- name: 'Install Playwright Browsers'
run: 'pnpm run playwright:install'
- name: 'Run Playwright tests'
run: 'pnpm run test:frontend'
- if: '${{ failure() }}'
name: 'Upload screenshots as artifacts'
uses: 'actions/upload-artifact@v4'
with:
name: 'playwright-screenshots'
path: 'src/typescript/frontend/screenshots/'
- if: '${{ !cancelled() }}'
name: 'Upload Playwright report as artifact'
uses: 'actions/upload-artifact@v4'
with:
name: 'playwright-report'
path: 'src/typescript/frontend/playwright-report/'
retention-days: 30
timeout-minutes: 15
name: 'Run the frontend tests'
"on":
pull_request: null
push:
branches:
- 'main'
- 'production'
workflow_dispatch: null
...