Skip to content

Commit

Permalink
Merge pull request #2828 from IntersectMBO/fix/deployment-order
Browse files Browse the repository at this point in the history
Update deployment order
  • Loading branch information
kneerose authored Jan 30, 2025
2 parents 844ce38 + 4258e92 commit e7c813e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test_backend.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Backend Test

on:
push:
branches:
- test
workflow_dispatch:
inputs:
deployment:
required: true
type: choice
default: "z6b8d2f7a-zca4a4c45-gtw.z937eb260.rustrocks.fr"
default: "govtool.cardanoapi.io/api"
options:
- "sanchogov.tools/api"
- "staging.govtool.byron.network/api"
Expand All @@ -26,10 +23,14 @@ on:
- "preview"
- "mainnet"
- "preprod"
workflow_run:
workflows: ["Build and deploy GovTool test stack"]
types: [completed]

jobs:
backend-tests:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -68,7 +69,7 @@ jobs:

publish-report:
runs-on: ubuntu-latest
if: always()
if: always() && needs.backend-tests.result != 'skipped'
needs: backend-tests
steps:
- uses: actions/checkout@v4
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/test_integration_playwright.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
name: Integration Test [Playwright]

on:
push:
branches:
- test
workflow_dispatch:
inputs:
deployment:
required: true
type: choice
default: "preview.gov.tools"
default: "govtool.cardanoapi.io"
options:
- "sanchogov.tools"
- "staging.govtool.byron.network"
Expand All @@ -27,12 +24,13 @@ on:
- "preprod"

workflow_run:
workflows: ["Build and deploy GovTool to TEST server"]
workflows: ["Build and deploy GovTool test stack"]
types: [completed]

jobs:
integration-tests:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
defaults:
run:
working-directory: tests/govtool-frontend/playwright
Expand Down Expand Up @@ -111,7 +109,7 @@ jobs:

publish-report:
runs-on: ubuntu-latest
if: always()
if: always() && needs.integration-tests.result != 'skipped'
needs: integration-tests
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit e7c813e

Please sign in to comment.