Skip to content

Commit

Permalink
change(ci): Add patch jobs for lightwalletd build and getblocktemplat…
Browse files Browse the repository at this point in the history
…e-rpcs tests (ZcashFoundation#5474)

* Add test-all-getblocktemplate-rpcs CI patch job

* Cancel concurrent in-progress zcash-lightwalletd jobs

* Add a patch job for zcash-lightwalletd / Build images
  • Loading branch information
teor2345 authored Oct 26, 2022
1 parent 3d00606 commit 5a6c840
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/continous-integration-docker.patch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ jobs:
steps:
- run: 'echo "No build required"'

test-all-getblocktemplate-rpcs:
name: Test all with getblocktemplate-rpcs feature
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'

test-fake-activation-heights:
name: Test with fake activation heights
runs-on: ubuntu-latest
Expand Down
22 changes: 22 additions & 0 deletions .github/workflows/zcash-lightwalletd.patch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: zcash-lightwalletd

# When the real job doesn't run because the files aren't changed,
# run a fake CI job to satisfy the branch protection rules.
on:
pull_request:
branches:
- main
paths-ignore:
- 'zebra-rpc/**'
- 'zebrad/tests/acceptance.rs'
- 'zebrad/src/config.rs'
- 'zebrad/src/commands/start.rs'
- 'docker/zcash-lightwalletd/Dockerfile'
- '.github/workflows/zcash-lightwalletd.yml'

jobs:
build:
name: Build images
runs-on: ubuntu-latest
steps:
- run: 'echo "No build required"'
9 changes: 9 additions & 0 deletions .github/workflows/zcash-lightwalletd.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
name: zcash-lightwalletd

# Ensures that only one workflow task will run at a time. Previous builds, if
# already in process, will get cancelled. Only the latest commit will be allowed
# to run, cancelling any workflows in between
#
# Cancelling old jobs is the most efficient approach, because the workflow is quick.
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

on:
workflow_dispatch:

Expand Down

0 comments on commit 5a6c840

Please sign in to comment.