Skip to content

Commit 59f351f

Browse files
alenkaczclaudec-julin
authored
run tests before dispatch (#2114)
* run tests before dispatch * fix: use reusable workflows instead of workflow_run trigger Addressed code review feedback to make the workflow self-contained by: - Making backend-lint-test.yml and frontend-verify.yml reusable with workflow_call trigger - Calling both workflows as jobs in repository-dispatch.yml - Using 'needs' to ensure dispatch only runs after tests pass This keeps the trigger self-contained in one file while still ensuring tests pass before dispatching to console-enterprise. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com> Co-authored-by: Julin Chandrarajah <142230457+c-julin@users.noreply.github.com>
1 parent 9aa8971 commit 59f351f

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/backend-lint-test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
- 'backend/**.go'
1616
- 'backend/go.mod'
1717
- '.github/workflows/backend-lint-test.yml'
18+
workflow_call:
1819
permissions:
1920
contents: read
2021
jobs:

.github/workflows/frontend-verify.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
paths:
1212
- "frontend/**"
1313
- ".github/workflows/frontend-verify.yml"
14+
workflow_call:
1415
env:
1516
CI: true
1617
jobs:

.github/workflows/repository-dispatch.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,18 @@ permissions:
1313
id-token: write
1414
contents: read
1515
jobs:
16+
backend-verify:
17+
uses: ./.github/workflows/backend-lint-test.yml
18+
permissions:
19+
contents: read
20+
21+
frontend-verify:
22+
uses: ./.github/workflows/frontend-verify.yml
23+
permissions:
24+
contents: read
25+
1626
dispatch:
27+
needs: [backend-verify, frontend-verify]
1728
runs-on: blacksmith-2vcpu-ubuntu-2404
1829
steps:
1930
- uses: aws-actions/configure-aws-credentials@v4

0 commit comments

Comments
 (0)