-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improvements to CI and the Justfile. (#119)
In CI, I have added workflows and jobs to: * run `cargo machete` * ensure the lockfile doesn't change * share a Rust cache I've also aligned the justfile with CI, and fixed the `just dev` target.
- Loading branch information
1 parent
7247041
commit dee4037
Showing
10 changed files
with
124 additions
and
341 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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: format | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
cargo-fmt: | ||
name: check formatting with cargo fmt | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
RUSTFLAGS: "-D warnings" # fail on warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install tools | ||
run: | | ||
rustup show | ||
- name: check formatting | ||
run: | | ||
cargo fmt --all --check |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: find unused dependencies | ||
|
||
on: | ||
push: | ||
|
||
jobs: | ||
cargo-machete: | ||
name: find unused dependencies with cargo machete | ||
runs-on: ubuntu-latest | ||
env: | ||
CARGO_NET_GIT_FETCH_WITH_CLI: "true" | ||
RUSTFLAGS: "-D warnings" # fail on warnings | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: install tools | ||
run: | | ||
rustup show | ||
cargo install cargo-machete | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
shared-key: "build" # share the cache across jobs | ||
save-if: false | ||
|
||
- name: find unused dependencies | ||
run: | | ||
cargo machete --with-metadata |
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 |
---|---|---|
|
@@ -3,3 +3,6 @@ | |
|
||
# direnv | ||
/.direnv | ||
|
||
# testing | ||
/tmp/empty |
Oops, something went wrong.