mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
ci: split checks across pr/merge group/main (#3405)
This commit is contained in:
2
.github/workflows/bench.yml
vendored
2
.github/workflows/bench.yml
vendored
@ -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
|
||||
|
||||
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -1,7 +1,4 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
merge_group:
|
||||
|
||||
|
||||
3
.github/workflows/fuzz.yml
vendored
3
.github/workflows/fuzz.yml
vendored
@ -1,7 +1,4 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
merge_group:
|
||||
|
||||
|
||||
7
.github/workflows/integration.yml
vendored
7
.github/workflows/integration.yml
vendored
@ -1,7 +1,4 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
merge_group:
|
||||
|
||||
@ -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
|
||||
@ -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
|
||||
|
||||
3
.github/workflows/unit.yml
vendored
3
.github/workflows/unit.yml
vendored
@ -1,7 +1,4 @@
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
merge_group:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user