mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-01-12 16:53:21 +08:00
Merge pull request #4766 from stacks-network/fix/reduce_ci_runs-master
[CI] 4746 - Avoid extraneous CI runs (master)
This commit is contained in:
83
.github/workflows/ci.yml
vendored
83
.github/workflows/ci.yml
vendored
@@ -24,16 +24,6 @@ on:
|
||||
- reopened
|
||||
- synchronize
|
||||
- ready_for_review
|
||||
paths-ignore:
|
||||
- "**.md"
|
||||
- "**.yml"
|
||||
## might be better to use inclusive v exclusive paths here, ex:
|
||||
# paths:
|
||||
# - "**.rs"
|
||||
# - "**.clar"
|
||||
pull_request_review:
|
||||
types:
|
||||
- submitted
|
||||
|
||||
defaults:
|
||||
run:
|
||||
@@ -55,15 +45,6 @@ jobs:
|
||||
## - PR review comment
|
||||
## - PR change is requested
|
||||
rustfmt:
|
||||
if: |
|
||||
!(
|
||||
github.event_name == 'pull_request_review' &&
|
||||
github.event.action == 'submitted' &&
|
||||
(
|
||||
github.event.review.state == 'commented' ||
|
||||
github.event.review.state == 'changes_requested'
|
||||
)
|
||||
)
|
||||
name: Rust Format
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -104,22 +85,9 @@ jobs:
|
||||
##
|
||||
## Runs when:
|
||||
## - tag is not provided
|
||||
## and the following are not true:
|
||||
## - PR review submitted (not approved)
|
||||
## and any of:
|
||||
## - PR review comment
|
||||
## - PR change is requested
|
||||
docker-image:
|
||||
if: |
|
||||
inputs.tag == '' &&
|
||||
!(
|
||||
github.event_name == 'pull_request_review' &&
|
||||
github.event.action == 'submitted' &&
|
||||
(
|
||||
github.event.review.state == 'commented' ||
|
||||
github.event.review.state == 'changes_requested'
|
||||
)
|
||||
)
|
||||
inputs.tag == ''
|
||||
name: Docker Image (Source)
|
||||
uses: ./.github/workflows/image-build-source.yml
|
||||
needs:
|
||||
@@ -133,7 +101,6 @@ jobs:
|
||||
## or:
|
||||
## - no tag provided
|
||||
## and any of:
|
||||
## - PR is approved (any approval will trigger)
|
||||
## - this workflow is called manually
|
||||
## - PR is opened
|
||||
## - commit to either (development, master) branch
|
||||
@@ -141,11 +108,6 @@ jobs:
|
||||
if: |
|
||||
inputs.tag != '' || (
|
||||
inputs.tag == '' && (
|
||||
(
|
||||
github.event_name == 'pull_request_review' &&
|
||||
github.event.action == 'submitted' &&
|
||||
github.event.review.state == 'approved'
|
||||
) ||
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
github.event_name == 'pull_request' ||
|
||||
github.event_name == 'merge_group' ||
|
||||
@@ -168,16 +130,28 @@ jobs:
|
||||
##
|
||||
## Runs when:
|
||||
## - tag is provided
|
||||
## either or of the following:
|
||||
## - tag is not provided
|
||||
## - PR is approved
|
||||
## or:
|
||||
## - no tag provided
|
||||
## and any of:
|
||||
## - this workflow is called manually
|
||||
## - PR is opened
|
||||
## - PR added to merge queue
|
||||
## - commit to either (development, next, master) branch
|
||||
stacks-core-tests:
|
||||
if: |
|
||||
inputs.tag != '' || (
|
||||
inputs.tag == '' || (
|
||||
github.event_name == 'pull_request_review' &&
|
||||
github.event.action == 'submitted' &&
|
||||
github.event.review.state == 'approved'
|
||||
inputs.tag == '' && (
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
github.event_name == 'pull_request' ||
|
||||
github.event_name == 'merge_group' ||
|
||||
(
|
||||
contains('
|
||||
refs/heads/master
|
||||
refs/heads/develop
|
||||
refs/heads/next
|
||||
', github.event.pull_request.head.ref) &&
|
||||
github.event_name == 'push'
|
||||
)
|
||||
)
|
||||
)
|
||||
name: Stacks Core Tests
|
||||
@@ -189,10 +163,18 @@ jobs:
|
||||
bitcoin-tests:
|
||||
if: |
|
||||
inputs.tag != '' || (
|
||||
inputs.tag == '' || (
|
||||
github.event_name == 'pull_request_review' &&
|
||||
github.event.action == 'submitted' &&
|
||||
github.event.review.state == 'approved'
|
||||
inputs.tag == '' && (
|
||||
github.event_name == 'workflow_dispatch' ||
|
||||
github.event_name == 'pull_request' ||
|
||||
github.event_name == 'merge_group' ||
|
||||
(
|
||||
contains('
|
||||
refs/heads/master
|
||||
refs/heads/develop
|
||||
refs/heads/next
|
||||
', github.event.pull_request.head.ref) &&
|
||||
github.event_name == 'push'
|
||||
)
|
||||
)
|
||||
)
|
||||
name: Bitcoin Tests
|
||||
@@ -228,3 +210,4 @@ jobs:
|
||||
- rustfmt
|
||||
- create-cache
|
||||
uses: ./.github/workflows/slow-tests.yml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user