Skip to content

Commit

Permalink
Case RE-851: Only run OpenStack GitHub Action when TestSuite Completes
Browse files Browse the repository at this point in the history
Previously each workflow would run at the same time.
Now unit tests in testsuite will need to complete
prior to OpenStack's workflow starting.

Changelog:
  • Loading branch information
davelcpanelnet committed Sep 26, 2024
1 parent 572aeb8 commit a7ac871
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/openstack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.ref }}-openstack
cancel-in-progress: true

env:
Expand All @@ -32,7 +32,10 @@ env:
tf_working_directory: "./.github/workflows/openstack/terraform"

jobs:
testsuite:
uses: ./.github/workflows/testsuite.yml
terraform_openstack_create:
needs: [testsuite]
runs-on: self-hosted
defaults:
run:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/testsuite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
- "*"
pull_request:
workflow_dispatch:
workflow_call:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-testsuite
cancel-in-progress: true

jobs:
testsuite:
Expand Down

0 comments on commit a7ac871

Please sign in to comment.