Skip to content

Commit bf08dcb

Browse files
chore(pre-commit.ci): auto fixes from pre-commit hooks
1 parent 513d2b7 commit bf08dcb

File tree

2 files changed

+0
-31
lines changed

2 files changed

+0
-31
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
version: 2
2-
32
updates:
4-
53
- package-ecosystem: github-actions
64
directory: /
75
schedule:

.github/workflows/rust.yml

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,21 @@
11
name: Rust CI
2-
32
on:
43
push:
54
pull_request:
65
schedule:
76
- cron: "0 0 * * *"
8-
97
env:
108
CARGO_TERM_COLOR: always
119
CARGO_INCREMENTAL: 0
1210
# Required by cargo-insta: https://insta.rs/docs/quickstart/#continuous-integration
1311
CI: true
1412
SCCACHE_GHA_ENABLED: true
1513
RUSTC_WRAPPER: sccache
16-
1714
# See: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#concurrency.
1815
# This will ensure that only one commit will be running tests at a time on each PR.
1916
concurrency:
2017
group: ${{ github.ref }}-${{ github.workflow }}
2118
cancel-in-progress: true
22-
2319
jobs:
2420
build:
2521
# Run on external PRs and pushes to branches on the repo
@@ -29,118 +25,93 @@ jobs:
2925
matrix:
3026
rust: [stable]
3127
os: [ubuntu-latest, macos-latest, windows-latest]
32-
3328
name: Build & test
3429
runs-on: ${{ matrix.os }}
3530
steps:
3631
- name: Checkout source
3732
uses: actions/checkout@v4
38-
3933
- name: Install Rust toolchain
4034
uses: dtolnay/rust-toolchain@master
4135
with:
4236
toolchain: ${{ matrix.rust }}
43-
4437
- name: Cache Cargo registry
4538
uses: Swatinem/rust-cache@v2
4639
with:
4740
shared-key: 'rust-ci'
4841
cache-bin: 'false'
49-
5042
- name: Run sccache-cache
5143
uses: mozilla-actions/sccache-action@v0.0.9
52-
5344
- name: Fetch dependencies
5445
run: cargo +${{ matrix.rust }} fetch --locked
55-
5646
- name: Build
5747
run: cargo +${{ matrix.rust }} build --all-features --tests
58-
5948
- name: Test
6049
run: cargo +${{ matrix.rust }} test run --all-features
61-
6250
clippy:
6351
if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository
64-
6552
name: Clippy lint checks
6653
runs-on: ubuntu-latest
6754
needs: ["build"]
6855
steps:
6956
- name: Checkout source
7057
uses: actions/checkout@v4
71-
7258
- name: Install Rust toolchain
7359
uses: dtolnay/rust-toolchain@master
7460
with:
7561
toolchain: stable
7662
components: clippy
77-
7863
- name: Cache Cargo registry
7964
uses: Swatinem/rust-cache@v2
8065
with:
8166
shared-key: 'rust-ci'
8267
cache-bin: 'false'
8368
save-if: 'false'
84-
8569
- name: Run sccache-cache
8670
uses: mozilla-actions/sccache-action@v0.0.9
87-
8871
- name: Run clippy
8972
run: cargo clippy --no-deps --all-targets -- -D warnings
90-
9173
rustfmt:
9274
if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository
93-
9475
name: Code formatting checks
9576
runs-on: ubuntu-latest
9677
needs: ["build"]
9778
steps:
9879
- name: Checkout source
9980
uses: actions/checkout@v4
100-
10181
- name: Install Rust toolchain
10282
uses: dtolnay/rust-toolchain@master
10383
with:
10484
toolchain: nightly
10585
components: rustfmt
106-
10786
- name: Cache Cargo registry
10887
uses: Swatinem/rust-cache@v2
10988
with:
11089
shared-key: 'rust-ci'
11190
cache-bin: 'false'
11291
save-if: 'false'
113-
11492
- name: Run sccache-cache
11593
uses: mozilla-actions/sccache-action@v0.0.9
116-
11794
- name: Run fmt
11895
run: cargo fmt --all -- --check
119-
12096
machete:
12197
if: github.event_name == 'push' || github.event_name == 'schedule' || github.event.pull_request.head.repo.full_name != github.repository
122-
12398
name: Machete dependencies checks
12499
runs-on: ubuntu-latest
125100
needs: ["build"]
126101
steps:
127102
- name: Checkout source
128103
uses: actions/checkout@v4
129-
130104
- name: Install Rust toolchain
131105
uses: dtolnay/rust-toolchain@master
132106
with:
133107
toolchain: stable
134-
135108
- name: Cache Cargo registry
136109
uses: Swatinem/rust-cache@v2
137110
with:
138111
shared-key: 'rust-ci'
139112
cache-bin: 'false'
140113
save-if: 'false'
141-
142114
- name: Run sccache-cache
143115
uses: mozilla-actions/sccache-action@v0.0.9
144-
145116
- name: Run cargo-machete
146117
uses: bnjbvr/cargo-machete@v0.8.0

0 commit comments

Comments
 (0)