diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2f16623..637d35b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} \ No newline at end of file