Update test.yml

- Add names to steps
- No need to run clippy AND check (https://stackoverflow.com/questions/57449356/is-cargo-clippy-a-superset-of-cargo-check)
This commit is contained in:
Andrzej Głuszak 2022-08-24 00:21:52 +02:00 committed by andrzej.gluszak
parent 5ce4662b81
commit dc696726cf

View file

@ -28,32 +28,36 @@ jobs:
continue-on-error: ${{ matrix.experimental }} continue-on-error: ${{ matrix.experimental }}
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - name: Checkout
- uses: actions-rs/toolchain@v1 uses: actions/checkout@v2
- name: Setup Rust toolchain
uses: actions-rs/toolchain@v1
with: with:
toolchain: ${{ matrix.rust }} toolchain: ${{ matrix.rust }}
components: rustfmt, clippy components: rustfmt, clippy
default: true default: true
- uses: actions-rs/cargo@v1 - name: Format
uses: actions-rs/cargo@v1
with: with:
command: fmt command: fmt
args: -- --check args: -- --check
- uses: actions-rs/cargo@v1 - name: Clippy
uses: actions-rs/cargo@v1
with: with:
command: clippy command: clippy
- uses: actions-rs/cargo@v1 args: --all-features --all-targets --all
with: - name: Test
command: check uses: actions-rs/cargo@v1
args: --all
- uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: --all-features --all-targets --all args: --all-features --all-targets --all
- uses: actions-rs/cargo@v1 - name: Test docs
uses: actions-rs/cargo@v1
with: with:
command: test command: test
args: --all-features --doc args: --doc
- uses: actions-rs/cargo@v1 - name: Check (without default features)
uses: actions-rs/cargo@v1
with: with:
command: check command: check
args: --no-default-features args: --no-default-features