From 46550e08ab083f13bd6fcc8be7d33f2f69edf1a6 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sun, 27 Aug 2023 10:30:10 +0200 Subject: [PATCH] add `cargo check` to the CI to compile the tests as well. --- .github/workflows/main.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 256011e..e1abcd3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ env: NU_VERSION: "0.84.0" jobs: - fmt-clippy: + fmt-check-clippy: runs-on: ubuntu-20.04 steps: @@ -31,6 +31,12 @@ jobs: cargo add "nu-protocol@$NU_VERSION" --features plugin shell: bash + - name: Check the library + run: cargo check --workspace --lib + + - name: Check the tests + run: cargo check --workspace --tests + - name: Clippy run: cargo clippy --workspace -- $CLIPPY_OPTIONS