Skip to content

Commit e7c813e

Browse files
authored
Merge pull request #2828 from IntersectMBO/fix/deployment-order
Update deployment order
2 parents 844ce38 + 4258e92 commit e7c813e

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

.github/workflows/test_backend.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: Backend Test
22

33
on:
4-
push:
5-
branches:
6-
- test
74
workflow_dispatch:
85
inputs:
96
deployment:
107
required: true
118
type: choice
12-
default: "z6b8d2f7a-zca4a4c45-gtw.z937eb260.rustrocks.fr"
9+
default: "govtool.cardanoapi.io/api"
1310
options:
1411
- "sanchogov.tools/api"
1512
- "staging.govtool.byron.network/api"
@@ -26,10 +23,14 @@ on:
2623
- "preview"
2724
- "mainnet"
2825
- "preprod"
26+
workflow_run:
27+
workflows: ["Build and deploy GovTool test stack"]
28+
types: [completed]
2929

3030
jobs:
3131
backend-tests:
3232
runs-on: ubuntu-latest
33+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
3334
steps:
3435
- name: Checkout code
3536
uses: actions/checkout@v4
@@ -68,7 +69,7 @@ jobs:
6869

6970
publish-report:
7071
runs-on: ubuntu-latest
71-
if: always()
72+
if: always() && needs.backend-tests.result != 'skipped'
7273
needs: backend-tests
7374
steps:
7475
- uses: actions/checkout@v4

.github/workflows/test_integration_playwright.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
name: Integration Test [Playwright]
22

33
on:
4-
push:
5-
branches:
6-
- test
74
workflow_dispatch:
85
inputs:
96
deployment:
107
required: true
118
type: choice
12-
default: "preview.gov.tools"
9+
default: "govtool.cardanoapi.io"
1310
options:
1411
- "sanchogov.tools"
1512
- "staging.govtool.byron.network"
@@ -27,12 +24,13 @@ on:
2724
- "preprod"
2825

2926
workflow_run:
30-
workflows: ["Build and deploy GovTool to TEST server"]
27+
workflows: ["Build and deploy GovTool test stack"]
3128
types: [completed]
3229

3330
jobs:
3431
integration-tests:
3532
runs-on: ubuntu-latest
33+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
3634
defaults:
3735
run:
3836
working-directory: tests/govtool-frontend/playwright
@@ -111,7 +109,7 @@ jobs:
111109

112110
publish-report:
113111
runs-on: ubuntu-latest
114-
if: always()
112+
if: always() && needs.integration-tests.result != 'skipped'
115113
needs: integration-tests
116114
steps:
117115
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)