mirror of
https://github.com/aljazceru/breez-sdk-docs.git
synced 2025-12-18 14:24:19 +01:00
CI: split flutter check in its own job
This commit is contained in:
17
.github/workflows/main.yml
vendored
17
.github/workflows/main.yml
vendored
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user