modify pre-commit checks & fix github action #17
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
on: push | |
jobs: | |
clippy-check: | |
name: π§ Clippy Check | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: "-D warnings" | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Run Clippy | |
run: cargo clippy --all-targets --all-features | |
fmt-check: | |
name: π fmt Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Run Fmt | |
run: cargo fmt --all -- --check |