add(ci): Run release builds and production Docker image tests on pull requests (#7055)
* Update the workflow run conditions for CI docker tests * Run release builds and release Docker image tests on pull requests * Remove the manual docker test from the release checklist * Fix workflow syntax * Use the right kind of quotes
This commit is contained in:
parent
0e0ee8d1bd
commit
9229424ebb
|
@ -158,10 +158,7 @@ The end of support height is calculated from the current blockchain height:
|
||||||
and put the output in a comment on the PR.
|
and put the output in a comment on the PR.
|
||||||
|
|
||||||
## Publish Docker Images
|
## Publish Docker Images
|
||||||
- [ ] Wait until [the Docker images have been published](https://github.com/ZcashFoundation/zebra/actions/workflows/release-binaries.yml)
|
- [ ] Wait for the [the Docker images to be published successfully](https://github.com/ZcashFoundation/zebra/actions/workflows/release-binaries.yml).
|
||||||
- [ ] Test the Docker image using `docker run --tty --interactive zfnd/zebra:v1.0.0`,
|
|
||||||
and put the output in a comment on the PR.
|
|
||||||
(You can use [gcloud cloud shell](https://console.cloud.google.com/home/dashboard?cloudshell=true))
|
|
||||||
- [ ] Un-freeze the [`batched` queue](https://dashboard.mergify.com/github/ZcashFoundation/repo/zebra/queues) using Mergify.
|
- [ ] Un-freeze the [`batched` queue](https://dashboard.mergify.com/github/ZcashFoundation/repo/zebra/queues) using Mergify.
|
||||||
|
|
||||||
## Release Failures
|
## Release Failures
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
name: CD
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Only patch the Docker image test jobs
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
# code and tests
|
||||||
|
- '**/*.rs'
|
||||||
|
# hard-coded checkpoints and proptest regressions
|
||||||
|
- '**/*.txt'
|
||||||
|
# dependencies
|
||||||
|
- '**/Cargo.toml'
|
||||||
|
- '**/Cargo.lock'
|
||||||
|
# configuration files
|
||||||
|
- '.cargo/config.toml'
|
||||||
|
- '**/clippy.toml'
|
||||||
|
# workflow definitions
|
||||||
|
- 'docker/**'
|
||||||
|
- '.dockerignore'
|
||||||
|
- '.github/workflows/continous-delivery.yml'
|
||||||
|
- '.github/workflows/find-cached-disks.yml'
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Also patched by continous-integration-docker.patch.yml, which has a different paths-ignore
|
||||||
|
build:
|
||||||
|
name: Build CI Docker / Build images
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
||||||
|
|
||||||
|
test-configuration-file:
|
||||||
|
name: Test Zebra default Docker config file
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- run: 'echo "No build required"'
|
|
@ -6,9 +6,12 @@ name: CD
|
||||||
#
|
#
|
||||||
# Since the different event types each use a different Managed Instance Group or instance,
|
# Since the different event types each use a different Managed Instance Group or instance,
|
||||||
# we can run different event types concurrently.
|
# we can run different event types concurrently.
|
||||||
|
#
|
||||||
|
# For pull requests, we only run the tests from this workflow, and don't do any deployments.
|
||||||
|
# So an in-progress pull request gets cancelled, just like other tests.
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }}
|
||||||
cancel-in-progress: false
|
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
@ -25,14 +28,52 @@ on:
|
||||||
required: false
|
required: false
|
||||||
type: boolean
|
type: boolean
|
||||||
default: false
|
default: false
|
||||||
|
|
||||||
# Temporarily disabled to reduce network load, see #6894.
|
# Temporarily disabled to reduce network load, see #6894.
|
||||||
#push:
|
#push:
|
||||||
# branches:
|
# branches:
|
||||||
# - main
|
# - main
|
||||||
|
# paths:
|
||||||
|
# # code and tests
|
||||||
|
# - '**/*.rs'
|
||||||
|
# # hard-coded checkpoints and proptest regressions
|
||||||
|
# - '**/*.txt'
|
||||||
|
# # dependencies
|
||||||
|
# - '**/Cargo.toml'
|
||||||
|
# - '**/Cargo.lock'
|
||||||
|
# # configuration files
|
||||||
|
# - '.cargo/config.toml'
|
||||||
|
# - '**/clippy.toml'
|
||||||
|
# # workflow definitions
|
||||||
|
# - 'docker/**'
|
||||||
|
# - '.dockerignore'
|
||||||
|
# - '.github/workflows/continous-delivery.yml'
|
||||||
|
# - '.github/workflows/build-docker-image.yml'
|
||||||
|
|
||||||
|
# Only runs the Docker image tests, doesn't deploy any instances
|
||||||
|
pull_request:
|
||||||
|
paths:
|
||||||
|
# code and tests
|
||||||
|
- '**/*.rs'
|
||||||
|
# hard-coded checkpoints and proptest regressions
|
||||||
|
- '**/*.txt'
|
||||||
|
# dependencies
|
||||||
|
- '**/Cargo.toml'
|
||||||
|
- '**/Cargo.lock'
|
||||||
|
# configuration files
|
||||||
|
- '.cargo/config.toml'
|
||||||
|
- '**/clippy.toml'
|
||||||
|
# workflow definitions
|
||||||
|
- 'docker/**'
|
||||||
|
- '.dockerignore'
|
||||||
|
- '.github/workflows/continous-delivery.yml'
|
||||||
|
- '.github/workflows/find-cached-disks.yml'
|
||||||
|
|
||||||
release:
|
release:
|
||||||
types:
|
types:
|
||||||
- published
|
- published
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# If a release was made we want to extract the first part of the semver from the
|
# If a release was made we want to extract the first part of the semver from the
|
||||||
# tag_name
|
# tag_name
|
||||||
|
|
|
@ -19,8 +19,10 @@ on:
|
||||||
- '**/clippy.toml'
|
- '**/clippy.toml'
|
||||||
# workflow definitions
|
# workflow definitions
|
||||||
- 'docker/**'
|
- 'docker/**'
|
||||||
|
- '.dockerignore'
|
||||||
- '.github/workflows/continous-integration-docker.yml'
|
- '.github/workflows/continous-integration-docker.yml'
|
||||||
- '.github/workflows/deploy-gcp-tests.yml'
|
- '.github/workflows/deploy-gcp-tests.yml'
|
||||||
|
- '.github/workflows/find-cached-disks.yml'
|
||||||
- '.github/workflows/build-docker-image.yml'
|
- '.github/workflows/build-docker-image.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
@ -80,10 +80,11 @@ on:
|
||||||
- '**/clippy.toml'
|
- '**/clippy.toml'
|
||||||
# workflow definitions
|
# workflow definitions
|
||||||
- 'docker/**'
|
- 'docker/**'
|
||||||
|
- '.dockerignore'
|
||||||
- '.github/workflows/continous-integration-docker.yml'
|
- '.github/workflows/continous-integration-docker.yml'
|
||||||
- '.github/workflows/deploy-gcp-tests.yml'
|
- '.github/workflows/deploy-gcp-tests.yml'
|
||||||
- '.github/workflows/build-docker-image.yml'
|
|
||||||
- '.github/workflows/find-cached-disks.yml'
|
- '.github/workflows/find-cached-disks.yml'
|
||||||
|
- '.github/workflows/build-docker-image.yml'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# to also run a job on Mergify head branches,
|
# to also run a job on Mergify head branches,
|
||||||
|
|
Loading…
Reference in New Issue