Skip to content

Commit

Permalink
chore(deps): group updates and be more selective about CI runs (#351)
Browse files Browse the repository at this point in the history
**Add groups to cargo package updates**

We only want one update PR (per crate) if multiple crates change

**Mark main tests to only run on code changes**

We don't need to run the full test suite on CI configuration changes
  • Loading branch information
simonrw authored Aug 6, 2024
1 parent ac78370 commit 92ea2ac
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 5 deletions.
30 changes: 25 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,52 @@ updates:
- package-ecosystem: cargo
directory: "/fitsio"
schedule:
interval: daily
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
groups:
cargo-packages:
patterns:
- "*"
- package-ecosystem: cargo
directory: "/fitsio-derive"
schedule:
interval: daily
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
groups:
cargo-packages:
patterns:
- "*"
- package-ecosystem: cargo
directory: "/fitsio-sys"
schedule:
interval: daily
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
groups:
cargo-packages:
patterns:
- "*"
- package-ecosystem: cargo
directory: "/fitsio-sys-bindgen"
schedule:
interval: daily
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
groups:
cargo-packages:
patterns:
- "*"
ignore:
- dependency-name: bindgen
versions:
- 0.56.0
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: daily
interval: weekly
groups:
cargo-packages:
patterns:
- "*"
12 changes: 12 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ on:
branches:
- main
pull_request:
paths:
- 'bin/**'
- 'fitsio/**'
- 'fitsio-derive/**'
- 'fitsio-sys/**'
- 'testdata/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'Cross.toml'
- 'rust-toolchain.toml'
- '.github/workflows/*.yml'


# Only one pull-request triggered run should be executed at a time
# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run).
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ on:
branches:
- main
pull_request:
paths:
- 'bin/**'
- 'fitsio/**'
- 'fitsio-derive/**'
- 'fitsio-sys/**'
- 'testdata/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'Cross.toml'
- 'rust-toolchain.toml'
- '.github/workflows/*.yml'

workflow_dispatch:

# Only one pull-request triggered run should be executed at a time
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ on:
branches:
- main
pull_request:
paths:
- 'bin/**'
- 'fitsio/**'
- 'fitsio-derive/**'
- 'fitsio-sys/**'
- 'testdata/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'Cross.toml'
- 'rust-toolchain.toml'
- '.github/workflows/*.yml'

schedule:
- cron: "7 7 * * *"

Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,17 @@ on:
branches:
- main
pull_request:
paths:
- 'bin/**'
- 'fitsio/**'
- 'fitsio-derive/**'
- 'fitsio-sys/**'
- 'testdata/**'
- 'Cargo.toml'
- 'Cargo.lock'
- 'Cross.toml'
- 'rust-toolchain.toml'
- '.github/workflows/*.yml'

# Only one pull-request triggered run should be executed at a time
# (head_ref is only set for PR events, otherwise fallback to run_id which differs for every run).
Expand Down

0 comments on commit 92ea2ac

Please sign in to comment.