fix(ci): update CI job path triggers (#3692)

* ci(test): re-run tests when snapshot data changes

* fix(ci): rebuild state when disk format changes

* fix(ci): rebuild rust docs when code or dependencies change

* doc(ci): explain why we run jobs when files change

Co-authored-by: Gustavo Valverde <gustavo@iterativo.do>
This commit is contained in:
teor 2022-03-03 00:23:05 +10:00 committed by GitHub
parent db966f27fa
commit 6b31f5b454
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 39 additions and 0 deletions

View File

@ -5,6 +5,7 @@ on:
paths-ignore:
- '**/*.rs'
- '**/*.txt'
- '**/*.snap'
- '**/Cargo.toml'
- '**/Cargo.lock'
- '**/deny.toml'

View File

@ -4,11 +4,18 @@ on:
workflow_dispatch:
pull_request:
paths:
# code and tests
- '**/*.rs'
# hard-coded checkpoints
- '**/*.txt'
# test data snapshots
- '**/*.snap'
# dependencies
- '**/Cargo.toml'
- '**/Cargo.lock'
- '**/deny.toml'
# workflow definitions
- 'docker/**'
- '.github/workflows/ci.yml'
env:

View File

@ -5,6 +5,7 @@ on:
paths-ignore:
- '**/*.rs'
- '**/*.txt'
- '**/*.snap'
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'codecov.yml'

View File

@ -6,16 +6,23 @@ on:
branches:
- main
paths:
# code and tests
- '**/*.rs'
# hard-coded checkpoints
- '**/*.txt'
# test data snapshots
- '**/*.snap'
# dependencies
- '**/Cargo.toml'
- '**/Cargo.lock'
# workflow definitions
- 'codecov.yml'
- '.github/workflows/coverage.yml'
pull_request:
paths:
- '**/*.rs'
- '**/*.txt'
- '**/*.snap'
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'codecov.yml'

View File

@ -6,9 +6,15 @@ on:
branches:
- main
paths:
# doc source files
- 'book/**'
- '**/firebase.json'
- 'katex-header.html'
# rustdoc source files
- '**/*.rs'
- '**/Cargo.toml'
- '**/Cargo.lock'
# workflow definitions
- '.github/workflows/docs.yml'
jobs:

View File

@ -6,9 +6,12 @@ on:
- "**"
- "!main"
paths:
# code and tests
- '**/*.rs'
# dependencies
- '**/Cargo.toml'
- '**/Cargo.lock'
# workflow definitions
- 'clippy.toml'
- '.cargo/config.toml'
- '.github/workflows/lint.yml'

View File

@ -7,6 +7,7 @@ on:
paths-ignore:
- '**/*.rs'
- '**/*.txt'
- '**/*.snap'
- '**/Cargo.toml'
- '**/Cargo.lock'
- 'docker/**'

View File

@ -13,10 +13,16 @@ on:
branches:
- main
paths:
# code and tests
- '**/*.rs'
# hard-coded checkpoints
- '**/*.txt'
# test data snapshots
- '**/*.snap'
# dependencies
- '**/Cargo.toml'
- '**/Cargo.lock'
# workflow definitions
- 'docker/**'
- '.github/workflows/test.yml'
pull_request_review:
@ -195,11 +201,16 @@ jobs:
uses: tj-actions/changed-files@v17.2
with:
files: |
/zebra-state/**/config.rs
/zebra-state/**/constants.rs
/zebra-state/**/finalized_state.rs
/zebra-state/**/disk_format.rs
/zebra-state/**/disk_db.rs
/zebra-state/**/zebra_db.rs
/zebra-state/**/zebra_db/block.rs
/zebra-state/**/zebra_db/chain.rs
/zebra-state/**/zebra_db/shielded.rs
/zebra-state/**/zebra_db/transparent.rs
- name: Inject slug/short variables
uses: rlespinasse/github-slug-action@v4

View File

@ -6,9 +6,11 @@ on:
branches:
- 'main'
paths:
# parameter download code
- 'zebra-consensus/src/primitives/groth16/params.rs'
- 'zebra-consensus/src/chain.rs'
- 'zebrad/src/commands/start.rs'
# workflow definitions
- 'docker/zcash-params/Dockerfile'
- '.github/workflows/zcash-params.yml'