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