style: prettify #21
Workflow file for this run
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: Quality | |
on: | |
push: | |
branches: | |
- main | |
- chore/** | |
- fix/** | |
- feat/** | |
jobs: | |
run_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Update local toolchain | |
run: | | |
rustup update | |
rustup component add clippy | |
rustup component add rustfmt | |
rustup install nightly | |
- name: Toolchain info | |
run: | | |
cargo --version | |
rustc --version | |
cargo clippy --version | |
cargo fmt --version | |
- name: Lint | |
run: | | |
cd src | |
cargo +nightly fmt -- --check | |
cargo +nightly clippy -- -D warnings | |
- name: Test | |
run: | | |
cargo +nightly check | |
cargo +nightly test --all | |
- name: Build | |
run: | | |
cargo +nightly build --release |