Update ci.yml

This commit is contained in:
Alex 2021-04-22 22:42:01 -04:00 committed by GitHub
parent 978644716b
commit ea8f72f38d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,9 +2,7 @@ name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
@ -20,9 +18,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@v1
with:
command: test
- run: cargo test --all-features
docs:
name: Docs
runs-on: ubuntu-latest
@ -33,11 +29,7 @@ jobs:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: doc
args: --all-features
- run: cargo doc --all-features
clippy:
name: Clippy
runs-on: ubuntu-latest
@ -49,7 +41,4 @@ jobs:
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- run: cargo clippy --all-features -- -Dclippy::all -Dclippy::pedantic