Discard use of actions-rs/cargo
This commit is contained in:
parent
3a77e2f7ca
commit
3725ce17b9
|
@ -24,28 +24,16 @@ jobs:
|
|||
- uses: dtolnay/rust-toolchain@master
|
||||
with:
|
||||
toolchain: ${{ matrix.rust }}
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
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
|
||||
- run: cargo check --all-features --all-targets
|
||||
- run: cargo test --all-features
|
||||
- run: cargo test --no-default-features
|
||||
|
||||
msrv:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: dtolnay/rust-toolchain@1.70
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --lib --all-features
|
||||
- run: cargo check --lib --all-features
|
||||
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -55,21 +43,11 @@ jobs:
|
|||
with:
|
||||
toolchain: stable
|
||||
components: rustfmt, clippy, rust-docs
|
||||
- uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
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
|
||||
- run: cargo fmt --all -- --check
|
||||
- run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
- run: cargo doc --no-deps --all-features --document-private-items
|
||||
env:
|
||||
RUSTDOCFLAGS: "-D warnings"
|
||||
with:
|
||||
command: doc
|
||||
args: --no-deps --all-features --document-private-items
|
||||
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
Loading…
Reference in New Issue