From 6af0a13c3688fd6432e64f2404db37678f77c808 Mon Sep 17 00:00:00 2001 From: LukeMathWalker Date: Sat, 23 Jan 2021 17:48:23 +0000 Subject: [PATCH] Use clippy action. --- .github/workflows/general.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/general.yml b/.github/workflows/general.yml index 67d4947..7a690f0 100644 --- a/.github/workflows/general.yml +++ b/.github/workflows/general.yml @@ -51,10 +51,9 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - profile: minimal toolchain: stable override: true - - run: rustup component add rustfmt + components: rustfmt - uses: actions-rs/cargo@v1 with: command: fmt @@ -76,8 +75,8 @@ jobs: - uses: actions/checkout@v2 - uses: actions-rs/toolchain@v1 with: - profile: minimal toolchain: stable + components: clippy override: true - run: rustup component add clippy - name: Migrate database @@ -85,9 +84,9 @@ jobs: sudo apt-get install libpq-dev -y cargo install --version=0.2.0 sqlx-cli --no-default-features --features postgres SKIP_DOCKER=true ./scripts/init_db.sh - - uses: actions-rs/cargo@v1 + - uses: actions-rs/clippy-check@v1 with: - command: clippy + token: ${{ secrets.GITHUB_TOKEN }} args: -- -D warnings coverage: