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:
parent
db966f27fa
commit
6b31f5b454
|
@ -5,6 +5,7 @@ on:
|
|||
paths-ignore:
|
||||
- '**/*.rs'
|
||||
- '**/*.txt'
|
||||
- '**/*.snap'
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
- '**/deny.toml'
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -5,6 +5,7 @@ on:
|
|||
paths-ignore:
|
||||
- '**/*.rs'
|
||||
- '**/*.txt'
|
||||
- '**/*.snap'
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
- 'codecov.yml'
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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'
|
||||
|
|
|
@ -7,6 +7,7 @@ on:
|
|||
paths-ignore:
|
||||
- '**/*.rs'
|
||||
- '**/*.txt'
|
||||
- '**/*.snap'
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
- 'docker/**'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue