Skip to content

Commit

Permalink
Update CI and release hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mo8it committed Jul 13, 2024
1 parent 516fcf9 commit 2854dc9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ jobs:
with:
globs: "exercises/**/*.md"
- name: Run cargo fmt
run: cargo fmt --all -- --check
run: cargo fmt --all --check
- name: Run rustfmt on solutions
run: rustfmt --check --edition 2021 --color always solutions/**/*.rs
test:
runs-on: ${{ matrix.os }}
strategy:
Expand All @@ -33,7 +35,7 @@ jobs:
- uses: actions/checkout@v4
- uses: swatinem/rust-cache@v2
- name: Run cargo test
run: cargo test
run: cargo test --workspace
dev-check:
runs-on: ubuntu-latest
steps:
Expand Down
9 changes: 7 additions & 2 deletions release-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
# Error out if any command fails
set -e

cargo run -- dev check
typos
cargo outdated -w --exit-code 1
cargo upgrades

# Similar to CI
cargo clippy -- --deny warnings
cargo fmt --all --check
rustfmt --check --edition 2021 solutions/**/*.rs
cargo test --workspace --all-targets
cargo run -- dev check --require-solutions

0 comments on commit 2854dc9

Please sign in to comment.