-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prep 0.9.3: lints, MSRV, minimal crates (#13)
- Update lints - Set MSRV and enforce in CI - Fix crate depenencies and check minimal vesions in CI - Prep 0.9.3 release
- Loading branch information
Showing
5 changed files
with
41 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,12 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
env: | ||
RUST_BACKTRACE: "1" | ||
RUSTFLAGS: "-Dwarnings" | ||
RUSTDOCFLAGS: "-Dwarnings" | ||
RUSTC_WRAPPER: "sccache" | ||
SCCACHE_GHA_ENABLED: "true" | ||
MSRV: "1.76" | ||
RUST_BACKTRACE: "1" | ||
RUSTFLAGS: "-Dwarnings" | ||
RUSTDOCFLAGS: "-Dwarnings" | ||
RUSTC_WRAPPER: "sccache" | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
jobs: | ||
lints: | ||
|
@@ -23,7 +24,7 @@ jobs: | |
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt, clippy | ||
- uses: mozilla-actions/[email protected].3 | ||
- uses: mozilla-actions/[email protected].6 | ||
- run: cargo fmt --check | ||
- run: cargo clippy --no-deps | ||
- run: cargo doc --no-deps --document-private-items | ||
|
@@ -37,9 +38,28 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: mozilla-actions/[email protected].3 | ||
- uses: mozilla-actions/[email protected].6 | ||
- uses: taiki-e/install-action@nextest | ||
- run: cargo test | ||
- run: cargo nextest run | ||
|
||
|
||
minimal-crates: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
- uses: mozilla-actions/[email protected] | ||
- name: cargo check | ||
run: | | ||
rm -f Cargo.lock | ||
cargo +nightly check -Z minimal-versions | ||
msrv: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@master | ||
with: | ||
toolchain: ${{ env.MSRV }} | ||
- uses: mozilla-actions/[email protected] | ||
- name: Check MSRV | ||
run: | | ||
cargo +$MSRV check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "testdir" | ||
version = "0.9.2" | ||
version = "0.9.3" | ||
authors = ["Floris Bruynooghe <[email protected]>"] | ||
edition = "2021" | ||
description = "Semi-persistent, scoped test directories" | ||
|
@@ -10,8 +10,11 @@ license = "MIT OR Apache-2.0" | |
keywords = ["test", "temp", "temporary", "directory"] | ||
categories = ["development-tools::testing", "filesystem"] | ||
|
||
# Sadly this also needs to be updated in .github/workflows/ci.yml | ||
rust-version = "1.76" | ||
|
||
[dependencies] | ||
anyhow = "1" | ||
anyhow = "1.0.20" | ||
backtrace = "0.3.55" | ||
cargo_metadata = "0.14.0" | ||
once_cell = "1.5" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters