Skip to content

Commit

Permalink
Add pull-request workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
gsf committed Aug 31, 2024
1 parent 28134e7 commit b309781
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: pull request jobs

on:
pull_request:

jobs:
unit-integration-test:
uses: ./.github/workflows/unit-integration-test.yml
secrets: inherit
deploy-api:
needs: unit-integration-test
uses: ./.github/workflows/deploy.yml
with:
environment: test
module: api
secrets: inherit
deploy-worker:
needs: unit-integration-test
uses: ./.github/workflows/deploy.yml
with:
environment: test
module: worker
secrets: inherit
e2e-test:
needs: [deploy-api, deploy-worker]
uses: ./.github/workflows/e2e-test.yml
with:
environment: test
secrets: inherit
2 changes: 1 addition & 1 deletion .github/workflows/unit-integration-test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Run unit and integration tests

on:
pull_request:
workflow_call:
workflow_dispatch: # Allow manual trigger

jobs:
Expand Down

0 comments on commit b309781

Please sign in to comment.