🎨 cargo fmt #4
This file contains 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: build | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
entry-server: | |
strategy: | |
matrix: | |
# TODO: add nightly | |
toolchain: [stable] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
components: rustfmt, clippy | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
- name: Run cargo test | |
run: cargo test --verbose --lib --bins --tests --no-fail-fast | |
- name: Run cargo clippy | |
run: cargo clippy --all-targets --all -- --deny=warnings | |
- name: Run cargo audit | |
uses: actions-rust-lang/audit@v1 |