Skip to content

Commit

Permalink
ci: Don't run downstream workflows if token/js is changed (solana-lab…
Browse files Browse the repository at this point in the history
  • Loading branch information
joncinque authored Nov 16, 2023
1 parent a183dbe commit 64d6919
Show file tree
Hide file tree
Showing 9 changed files with 20 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-binary-oracle-pair.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
- 'binary-oracle-pair/**'
- 'token/**'
- 'ci/*-version.sh'
- '!token/js/**'
push:
branches: [master]
paths:
- 'binary-oracle-pair/**'
- 'token/**'
- 'ci/*-version.sh'
- '!token/js/**'

jobs:
cargo-test-sbf:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-feature-proposal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
- 'feature-proposal/**'
- 'token/**'
- 'ci/*-version.sh'
- '!token/js/**'
push:
branches: [master]
paths:
- 'feature-proposal/**'
- 'token/**'
- 'ci/*-version.sh'
- '!token/js/**'

jobs:
cargo-test-sbf:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-governance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
- "governance/**"
- "token/**"
- "ci/*-version.sh"
- '!token/js/**'
push:
branches: [master]
paths:
- "governance/**"
- "token/**"
- "ci/*-version.sh"
- '!token/js/**'

jobs:
cargo-test-sbf:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-single-pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'ci/*-version.sh'
- '.github/workflows/pull-request-single-pool.yml'
- '!single-pool/js/**'
- '!token/js/**'
push:
branches: [master]
paths:
Expand All @@ -18,6 +19,7 @@ on:
- 'ci/*-version.sh'
- '.github/workflows/pull-request-single-pool.yml'
- '!single-pool/js/**'
- '!token/js/**'

jobs:
cargo-test-sbf:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-stake-pool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'ci/warning/purge-ubuntu-runner.sh'
- '.github/workflows/pull-request-stake-pool.yml'
- '!stake-pool/js/**'
- '!token/js/**'
push:
branches: [master]
paths:
Expand All @@ -18,6 +19,7 @@ on:
- 'ci/warning/purge-ubuntu-runner.sh'
- '.github/workflows/pull-request-stake-pool.yml'
- '!stake-pool/js/**'
- '!token/js/**'

jobs:
cargo-test-sbf:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/pull-request-token-collection.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
- 'token-metadata/**'
- 'ci/*-version.sh'
- '.github/workflows/pull-request-token-collection.yml'
- '!token/js/**'
- '!token-metadata/js/**'
push:
branches: [master]
paths:
Expand All @@ -18,6 +20,8 @@ on:
- 'token-metadata/**'
- 'ci/*-version.sh'
- '.github/workflows/pull-request-token-collection.yml'
- '!token/js/**'
- '!token-metadata/js/**'

jobs:
cargo-test-sbf:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-token-lending.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
- 'token/**'
- 'ci/*-version.sh'
- '!token-lending/js/**'
- '!token/js/**'
push:
branches: [master]
paths:
- 'token-lending/**'
- 'token/**'
- 'ci/*-version.sh'
- '!token-lending/js/**'
- '!token/js/**'

jobs:
cargo-test-sbf:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-token-swap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:
- 'libraries/math/**'
- 'ci/*-version.sh'
- '!token-swap/js/**'
- '!token/js/**'
push:
branches: [master]
paths:
Expand All @@ -16,6 +17,7 @@ on:
- 'libraries/math/**'
- 'ci/*-version.sh'
- '!token-swap/js/**'
- '!token/js/**'

jobs:
cargo-test-sbf:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/pull-request-token-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ on:
- 'token/**'
- 'ci/*-version.sh'
- '.github/workflows/pull-request-token-upgrade.yml'
- '!token/js/**'
push:
branches: [master]
paths:
- 'token-upgrade/**'
- 'token/**'
- 'ci/*-version.sh'
- '.github/workflows/pull-request-token-upgrade.yml'
- '!token/js/**'

jobs:
cargo-test-sbf:
Expand Down

0 comments on commit 64d6919

Please sign in to comment.