fix(ci): Run required jobs on dependent PRs (#5550)

* Run CI jobs on dependent PRs

* Change job names to be unique

* Fix outdated workflow name

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
This commit is contained in:
teor 2022-11-07 11:59:32 +10:00 committed by GitHub
parent 75f83fc5b0
commit 26698bf2c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 8 additions and 13 deletions

View File

@ -65,6 +65,7 @@ jobs:
#
# The image will be commonly named `zebrad:<short-hash | github-ref | semver>`
build:
name: Build CD Docker
uses: ./.github/workflows/build-docker-image.yml
with:
dockerfile_path: ./docker/Dockerfile

View File

@ -31,7 +31,7 @@ jobs:
- run: 'echo "No build required"'
build:
name: Build / Build images
name: Build CI Docker / Build images
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

View File

@ -165,7 +165,7 @@ jobs:
fi
build:
name: Build
name: Build CI Docker
uses: ./.github/workflows/build-docker-image.yml
with:
dockerfile_path: ./docker/Dockerfile

View File

@ -28,7 +28,7 @@ on:
- '.cargo/config.toml'
- '**/clippy.toml'
# workflow definitions
- '.github/workflows/ci.yml'
- '.github/workflows/continous-integration-os.yml'
pull_request:
paths:
# code and tests

View File

@ -2,8 +2,6 @@ name: Lint
on:
pull_request:
branches:
- 'main'
jobs:
clippy:

View File

@ -14,8 +14,6 @@ on:
branches:
- main
pull_request:
branches:
- 'main'
env:
CARGO_INCREMENTAL: 0

View File

@ -20,6 +20,7 @@ jobs:
#
# The image will be named `zebrad:<semver>`
build:
name: Build Release Docker
uses: ./.github/workflows/build-docker-image.yml
with:
dockerfile_path: ./docker/Dockerfile

View File

@ -4,8 +4,6 @@ name: zcash-lightwalletd
# run a fake CI job to satisfy the branch protection rules.
on:
pull_request:
branches:
- main
paths-ignore:
- 'zebra-rpc/**'
- 'zebrad/tests/acceptance.rs'
@ -16,7 +14,7 @@ on:
jobs:
build:
name: Build images
name: Build lightwalletd Docker
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

View File

@ -31,8 +31,6 @@ on:
# Update the lightwalletd image when each related PR changes
pull_request:
branches:
- main
paths:
# rebuild lightwalletd whenever the related Zebra code changes
# (this code isn't actually compiled in this docker image)
@ -50,7 +48,7 @@ env:
jobs:
build:
name: Build images
name: Build lightwalletd Docker
runs-on: ubuntu-latest
permissions:
contents: 'read'

View File

@ -24,6 +24,7 @@ on:
jobs:
build:
name: Build Zcash Params Docker
uses: ./.github/workflows/build-docker-image.yml
with:
dockerfile_path: ./docker/zcash-params/Dockerfile