Merge pull request #2187 from rust-lang/senekor/xxvrurzvulqw #2307
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
env: | |
RUST_BACKTRACE: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
components: rustfmt | |
- name: Formatting | |
run: cargo fmt --all -- --check | |
- name: Test | |
run: | | |
set -euo pipefail | |
# Check if the code is good | |
cargo build --all --locked | |
cargo clippy -- --deny warnings | |
cargo test --all --locked |