This repository has been archived by the owner on Oct 24, 2023. It is now read-only.
chore: set toolchain and linter rules #2
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: Rust | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build | |
run: cargo build --all-features --all-targets --workspace | |
- name: Run formatter | |
run: cargo fmt -- --check | |
- name: Run linter | |
run: cargo clippy --all-features --all-targets --workspace | |
- name: Run tests | |
run: cargo test --all-features --all-targets --workspace |