Bump clap from 4.4.6 to 4.5.7 #1646
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
name: Rust testing | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "src/modlunky2/**" | |
- "src/tests/**" | |
- "requirements*.txt" | |
jobs: | |
build: | |
name: "Rust ${{matrix.rust}}" | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
# Test stable and MSRV | |
rust: [stable, "1.70"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Rust | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{matrix.rust}} | |
components: clippy rustfmt | |
- name: cargo fmt | |
run: cargo fmt --all --check | |
- name: cargo check | |
run: cargo check --workspace --all-targets --exclude launcher --locked | |
- name: cargo clippy | |
run: cargo clippy --workspace --all-targets --exclude launcher --locked -- -D warnings | |
- name: cargo test | |
run: cargo test --workspace --all-targets --exclude launcher --locked | |
# cargo deny only works on Linux due to using a container | |
deny: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: cargo deny check | |
uses: EmbarkStudios/cargo-deny-action@v1 |