add Cargo Check to github action #19
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 | |
build-check: | |
name: π¨ Build Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Try To Build | |
run: cargo build --release | |
cargo-test: | |
name: π¦ Cargo Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Run Checks | |
run: cargo test |