Skip to content

Commit

Permalink
ci: split checks across pr/merge group/main (#3405)
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg authored Jun 26, 2023
1 parent 682dfc1 commit 007c04e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ name: bench
jobs:
iai:
runs-on: ubuntu-latest
# Only run benchmarks in merge groups
if: github.event_name != 'pull_request'
steps:
- name: Checkout main sources
uses: actions/checkout@v3
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
push:
branches:
- main
pull_request:
merge_group:

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
push:
branches:
- main
pull_request:
merge_group:

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
push:
branches:
- main
pull_request:
merge_group:

Expand Down Expand Up @@ -66,6 +63,8 @@ jobs:

sync:
name: sync / 100k blocks
# Only run sync tests in merge groups
if: github.event_name == 'merge_group'
runs-on: ubuntu-latest
env:
RUST_LOG: info,sync=error
Expand Down Expand Up @@ -95,7 +94,7 @@ jobs:
if: always()
name: integration success
runs-on: ubuntu-latest
needs: [test, sync]
needs: [test]
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@release/v1
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/unit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
on:
push:
branches:
- main
pull_request:
merge_group:

Expand Down

0 comments on commit 007c04e

Please sign in to comment.