-
Notifications
You must be signed in to change notification settings - Fork 48
65 lines (54 loc) · 1.68 KB
/
qa.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
62
63
64
65
name: QA
on: [workflow_call]
jobs:
validate:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- run: yarn install --immutable
- run: yarn prettier --check .
- run: yarn lint -- --max-warnings=0
- run: yarn check-types
- run: yarn test
e2e:
runs-on: ubuntu-latest
environment: ${{ vars.PORTAL_PROJECT_NAME }} (${{ fromJSON('["Preview", "Production"]')[github.ref_name == github.event.repository.default_branch] }})
permissions:
actions: read
contents: read
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/load-environment-variables
with:
secrets: ${{ toJson(secrets) }}
vars: ${{ toJson(vars) }}
environmentVariableSecrets: >-
CHAINDATA,
COIN_GECKO_API,
ONFINALITY_API_KEY,
SENTRY_DSN,
POSTHOG_AUTH_TOKEN,
EX_HISTORY_INDEXER,
DOT_CROWDLOAN_INDEXER,
KSM_CROWDLOAN_INDEXER,
BASEROW_EXPLORE_AUTH,
BASEROW_CROWDLOANS_AUTH,
LIDO_REWARDS_ADDRESS,
SIMPLESWAP_API_KEY,
TAOSTATS_API_KEY
environmentVariableVariables: >-
APPLICATION_NAME
environmentVariablePrefix: REACT_APP_
- uses: ./.github/actions/setup
- run: npx playwright install --with-deps
- run: yarn e2e
- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: portal-playwright-report
path: apps/portal/test-results
if-no-files-found: ignore