CI: split flutter check in its own job

This commit is contained in:
Jesse de Wit
2023-11-04 10:38:38 +01:00
parent 12bd765023
commit b8b7542d97

View File

@@ -16,8 +16,8 @@ concurrency:
jobs: jobs:
clippy: check-rust:
name: Clippy name: Check rust snippets
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repo - name: Checkout repo
@@ -35,13 +35,24 @@ jobs:
version: "23.4" version: "23.4"
repo-token: ${{ secrets.GITHUB_TOKEN }} repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: Swatinem/rust-cache@v2
with:
workspaces: snippets/rust -> snippets/rust/target
- name: clippy - name: clippy
working-directory: snippets/rust
run: | run: |
cd snippets/rust
# Explicitly allow clippy::dead_code lint because the functions aren't called in the docs snippets # 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 # 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 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 # Set up the flutter environment and run checks
- uses: subosito/flutter-action@v2 - uses: subosito/flutter-action@v2
with: with: