diff options
Diffstat (limited to '.github/workflows/ci.yml')
-rw-r--r-- | .github/workflows/ci.yml | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7caced6..ad3537c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,32 +34,39 @@ jobs: with: command: test - rustfmt: + lints: + name: Lints runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 + - name: Checkout sources + uses: actions/checkout@v2 + + - name: Install stable toolchain + uses: actions-rs/toolchain@v1 with: profile: minimal toolchain: stable override: true - components: rustfmt - - uses: actions-rs/cargo@v1 + components: rustfmt, clippy + + - name: Run cargo fmt + uses: actions-rs/cargo@v1 with: command: fmt args: --all -- --check - clippy: + - name: Run cargo clippy + uses: actions-rs/cargo@v1 + with: + command: clippy + args: -- -D warnings + + clippy_check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions-rs/toolchain@v1 - with: - profile: minimal - toolchain: stable - override: true - components: clippy + - uses: actions/checkout@v1 + - run: rustup component add clippy - uses: actions-rs/clippy-check@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - args: --all-features -- -D warnings + args: --all-features
\ No newline at end of file |