-
Notifications
You must be signed in to change notification settings - Fork 34
54 lines (54 loc) · 1.66 KB
/
e2e-quantic.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
on:
workflow_run:
secrets:
SFDX_AUTH_CLIENT_ID:
required: true
SFDX_AUTH_JWT_KEY:
required: true
GITHUB_TOKEN:
required: true
jobs:
e2e-quantic-setup:
name: 'Setup e2e tests on Quantic'
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: ./.github/actions/setup
- uses: ./.github/actions/setup-sfdx
- uses: ./.github/actions/e2e-quantic-setup
with:
clientid: ${{ secrets.SFDX_AUTH_CLIENT_ID }}
jwtkey: ${{ secrets.SFDX_AUTH_JWT_KEY }}
e2e-quantic-test:
name: 'Run e2e tests on Quantic'
needs: e2e-quantic-setup
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
spec:
[
'cypress/e2e/default-1/**/*',
'cypress/e2e/default-2/**/*',
'cypress/e2e/facets-1/**/*',
'cypress/e2e/facets-2/**/*',
]
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: ./.github/actions/setup
- uses: ./.github/actions/setup-sfdx
- uses: ./.github/actions/e2e-quantic
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
spec: ${{ matrix.spec }}
e2e-quantic-cleanup:
if: cancelled() || failure() || success()
needs: e2e-quantic-test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
- uses: ./.github/actions/setup
- uses: ./.github/actions/setup-sfdx
- run: npx --no-install ts-node packages/quantic/scripts/build/delete-org.ts
shell: bash