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: paths-ignore:
- '**/*.rs' - '**/*.rs'
- '**/*.txt' - '**/*.txt'
- '**/*.snap'
- '**/Cargo.toml' - '**/Cargo.toml'
- '**/Cargo.lock' - '**/Cargo.lock'
- '**/deny.toml' - '**/deny.toml'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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