|
|
|
@ -7,10 +7,22 @@ on:
|
|
|
|
|
branches: [ main ]
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
test:
|
|
|
|
|
formatting:
|
|
|
|
|
name: cargo fmt
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- name: Clippy
|
|
|
|
|
uses: actions-rs/clippy-check@v1.0.7
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
- uses: actions-rust-lang/setup-rust-toolchain@v1
|
|
|
|
|
with:
|
|
|
|
|
components: rustfmt
|
|
|
|
|
- name: Format
|
|
|
|
|
uses: actions-rust-lang/rustfmt@v1.0.0
|
|
|
|
|
clippy:
|
|
|
|
|
name: cargo clippy
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
steps:
|
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
|
- run: rustup component add clippy
|
|
|
|
|
- uses: actions-rs/clippy-check@v1
|
|
|
|
|
with:
|
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|