Skip to content

Commit

Permalink
ci: fix concurrency groups (#1870)
Browse files Browse the repository at this point in the history
* ci: fix concurrency groups, and test it

* ci: add tests to merge group

* ci: fix merge queue

* ci: move around workflows

* ci: move testnet test to nightly

---------

Co-authored-by: Liam Heeger <[email protected]>
  • Loading branch information
lheeger-jump and CantelopePeel authored May 16, 2024
1 parent 340401d commit 810f07a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 8 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/on_main_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,3 @@ jobs:
clusterfuzz:
uses: ./.github/workflows/clusterfuzz.yml
secrets: inherit

coverage-report:
uses: ./.github/workflows/coverage_report.yml
secrets: inherit
7 changes: 7 additions & 0 deletions .github/workflows/on_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,10 @@ jobs:
coverage: true
machine: linux_clang_zen2
extras: llvm-cov
coverage-report:
uses: ./.github/workflows/coverage_report.yml
secrets: inherit
test-firedancer-testnet:
uses: ./.github/workflows/test_firedancer_testnet.yml
secrets: inherit

1 change: 0 additions & 1 deletion .github/workflows/on_pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: On Pull Request
on:
merge_group:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
concurrency:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test_firedancer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
firedancer-tests:
runs-on: private
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/test_firedancer_testnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ name: Firedancer Testnet
on:
workflow_call:
workflow_dispatch:
pull_request:
types: [synchronize, opened, reopened, ready_for_review]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
firedancer-testnet:
runs-on: private
if: github.event.pull_request.draft == false
env:
CC: gcc
EXTRAS: no-solana
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ name: Tests
on:
workflow_call:
workflow_dispatch:
merge_group:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
Expand Down

0 comments on commit 810f07a

Please sign in to comment.