-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ccbc37e
commit 110a61b
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
on: | ||
workflow_call: | ||
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/e2e-quantic | ||
- uses: ./.github/actions/setup-sfdx | ||
with: | ||
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 |