Skip to content

Commit

Permalink
Merge pull request #3002 from aiidtest/feature-full-workflows
Browse files Browse the repository at this point in the history
Add full e2e workflows to production and staging
  • Loading branch information
kepae authored Aug 6, 2024
2 parents 5d3aed2 + 7d54c4d commit e8599b4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ jobs:
environment: production
runner-label: ${{ vars.PRODUCTION_RUNNER_LABEL }}

call-test-playwright-full:
if: ${{ !failure() && !cancelled() }}
uses: ./.github/workflows/test-playwright-full.yml
needs: [cache-modifier]
secrets: inherit
with:
sha: ${{ github.sha }}
environment: production
runner-label: ${{ vars.PREVIEW_RUNNER_LABEL }}

call-deploy:
if: (inputs.force-deploy == true || success()) && !cancelled()
uses: ./.github/workflows/deploy.yml
Expand Down
22 changes: 16 additions & 6 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ on:
default: true
type: boolean
force-deploy:
description: "Deploy even if tests fail"
required: true
default: false
type: boolean
description: "Deploy even if tests fail"
required: true
default: false
type: boolean

jobs:
cache-modifier:
Expand Down Expand Up @@ -59,8 +59,8 @@ jobs:
sha: ${{ github.sha }}
environment: staging
runner-label: ${{ vars.STAGING_RUNNER_LABEL }}
call-test:

call-test:
uses: ./.github/workflows/test.yml
needs: [cache-modifier, call-test-build]
secrets: inherit
Expand All @@ -70,6 +70,16 @@ jobs:
runner-label: ${{ vars.STAGING_RUNNER_LABEL }}
cache-modifier: ${{ needs.cache-modifier.outputs.cache-modifier }}

call-test-playwright-full:
if: ${{ !failure() && !cancelled() }}
uses: ./.github/workflows/test-playwright-full.yml
needs: [cache-modifier]
secrets: inherit
with:
sha: ${{ github.sha }}
environment: staging
runner-label: ${{ vars.PREVIEW_RUNNER_LABEL }}

call-deploy:
if: (inputs.force-deploy == true || success()) && !cancelled()
uses: ./.github/workflows/deploy.yml
Expand Down

0 comments on commit e8599b4

Please sign in to comment.