From b8b7542d97331ce9f8f713f50b1124e1fe764b2f Mon Sep 17 00:00:00 2001 From: Jesse de Wit Date: Sat, 4 Nov 2023 10:38:38 +0100 Subject: [PATCH] CI: split flutter check in its own job --- .github/workflows/main.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3c84136..e2ecbc8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -16,8 +16,8 @@ concurrency: jobs: - clippy: - name: Clippy + check-rust: + name: Check rust snippets runs-on: ubuntu-latest steps: - name: Checkout repo @@ -35,13 +35,24 @@ jobs: version: "23.4" repo-token: ${{ secrets.GITHUB_TOKEN }} + - uses: Swatinem/rust-cache@v2 + with: + workspaces: snippets/rust -> snippets/rust/target + - name: clippy + working-directory: snippets/rust run: | - cd snippets/rust # Explicitly allow clippy::dead_code lint because the functions aren't called in the docs snippets # Explicitly allow clippy::unused_variables because snippets might have to demonstrate how to get certain variables without using them afterward cargo clippy -- --allow dead_code --allow unused_variables --deny warnings + check-dart: + name: Check dart snippets + runs-on: ubuntu-latest + steps: + - name: Checkout repo + uses: actions/checkout@v3 + # Set up the flutter environment and run checks - uses: subosito/flutter-action@v2 with: