From 8567aa75cdc160c475b0520c405cb7eb77b81930 Mon Sep 17 00:00:00 2001 From: Justine Pelletreau Date: Mon, 17 Jul 2023 11:36:29 +0200 Subject: [PATCH] Actions 7 added clippy --- .gitea/workflows/build.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 89a0097..66b066f 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -14,7 +14,6 @@ jobs: - name: Check-out uses: actions/checkout@v2 - continue-on-error: true - name: Install stable toolchain uses: https://github.com/actions-rs/toolchain@v1 @@ -25,12 +24,23 @@ jobs: - name: Run cargo check uses: https://github.com/actions-rs/cargo@v1 - continue-on-error: true # WARNING: only for this example, remove it! with: command: check - - name: Ayo - run: ls -la + - name: Install nightly toolchain with clippy available + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + override: true + components: clippy + + - name: Run cargo clippy + uses: actions-rs/cargo@v1 + continue-on-error: true # WARNING: only for this example, remove it! + with: + command: clippy + args: -- -D warnings - name: Test run: cargo test