Discard use of actions-rs/cargo

This commit is contained in:
Dirkjan Ochtman 2024-10-23 10:03:48 +02:00
parent 3a77e2f7ca
commit 3725ce17b9
1 changed files with 7 additions and 29 deletions

View File

@ -24,28 +24,16 @@ jobs:
- uses: dtolnay/rust-toolchain@master - uses: dtolnay/rust-toolchain@master
with: with:
toolchain: ${{ matrix.rust }} toolchain: ${{ matrix.rust }}
- uses: actions-rs/cargo@v1 - run: cargo check --all-features --all-targets
with: - run: cargo test --all-features
command: build - run: cargo test --no-default-features
args: --all-features --all-targets
- uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
- uses: actions-rs/cargo@v1
with:
command: test
args: --no-default-features
msrv: msrv:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: dtolnay/rust-toolchain@1.70 - uses: dtolnay/rust-toolchain@1.70
- uses: actions-rs/cargo@v1 - run: cargo check --lib --all-features
with:
command: check
args: --lib --all-features
lint: lint:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -55,21 +43,11 @@ jobs:
with: with:
toolchain: stable toolchain: stable
components: rustfmt, clippy, rust-docs components: rustfmt, clippy, rust-docs
- uses: actions-rs/cargo@v1 - run: cargo fmt --all -- --check
with: - run: cargo clippy --all-targets --all-features -- -D warnings
command: fmt - run: cargo doc --no-deps --all-features --document-private-items
args: --all -- --check
- uses: actions-rs/cargo@v1
if: always()
with:
command: clippy
args: --workspace --all-targets --all-features -- -D warnings
- uses: actions-rs/cargo@v1
env: env:
RUSTDOCFLAGS: "-D warnings" RUSTDOCFLAGS: "-D warnings"
with:
command: doc
args: --no-deps --all-features --document-private-items
audit: audit:
runs-on: ubuntu-latest runs-on: ubuntu-latest