Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deployment order #2828

Merged
merged 3 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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