readme/license/ci

This commit is contained in:
thesimplekid
2023-04-23 15:33:48 -04:00
parent e93104a3f1
commit 81704929b7
5 changed files with 102 additions and 2 deletions

26
.github/workflows/lint.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: lint
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v3
- name: Set Toolchain
# https://github.com/dtolnay/rust-toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run fmt
run: cargo fmt --all --check
- name: Run clippy
run: |
rustup component add clippy
cargo clippy --all