Skip to content

Commit 4258e92

Browse files
committed
chore: update test workflow to run only on deployment success
1 parent 4c15cd3 commit 4258e92

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/test_backend.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ on:
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ on:
3030
jobs:
3131
integration-tests:
3232
runs-on: ubuntu-latest
33+
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
3334
defaults:
3435
run:
3536
working-directory: tests/govtool-frontend/playwright
@@ -108,7 +109,7 @@ jobs:
108109

109110
publish-report:
110111
runs-on: ubuntu-latest
111-
if: always()
112+
if: always() && needs.integration-tests.result != 'skipped'
112113
needs: integration-tests
113114
steps:
114115
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)