Update rust.yml

This commit is contained in:
jb-alvarado 2022-05-07 22:08:52 +02:00 committed by GitHub
parent 8f1dae6550
commit b163594249
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,9 +2,9 @@ name: Rust
on: on:
push: push:
branches: [ main ] branches: [ master ]
pull_request: pull_request:
branches: [ main ] branches: [ master ]
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@ -16,7 +16,10 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Build - name: Build and test
run: cargo build --verbose - run: rustup component add rustfmt
- name: Run tests - run: rustup component add clippy
run: cargo test --verbose - run: cargo build --all-features
- run: cargo test --all-features
- run: cargo fmt --all -- --check
- run: cargo clippy --all-features --all-targets -- --deny warnings