Skip to content

refactor(ci): refactor quantic jobs into reusable workflow #1

refactor(ci): refactor quantic jobs into reusable workflow

refactor(ci): refactor quantic jobs into reusable workflow #1

Workflow file for this run

on:

Check failure on line 1 in .github/workflows/e2e-quantic.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/e2e-quantic.yml

Invalid workflow file

`on.workflow_run` does not reference any workflows. See https://docs.github.com/actions/learn-github-actions/events-that-trigger-workflows#workflow_run for more information
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