From 6ab83482215e490424c11c6d0b180c80b3368360 Mon Sep 17 00:00:00 2001 From: Jorge Hermo Date: Wed, 15 Jan 2025 23:38:46 +0100 Subject: [PATCH] chore: include limbo-wasm in clippy checks --- .github/workflows/rust.yml | 43 +++++++++++++++++++++----------------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8a8e0631..ccfdce95 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,9 +2,9 @@ name: Rust on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always @@ -13,9 +13,9 @@ jobs: cargo-fmt-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Check formatting - run: cargo fmt --check + - uses: actions/checkout@v3 + - name: Check formatting + run: cargo fmt --check build-native: strategy: @@ -25,20 +25,19 @@ jobs: runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v3 - - uses: Swatinem/rust-cache@v2 - - name: Set up Python 3.10 - uses: actions/setup-python@v5 - with: - python-version: "3.10" - - name: Build - run: cargo build --verbose - - name: Test - env: - RUST_LOG: ${{ runner.debug && 'limbo_core::storage=trace' || '' }} - run: cargo test --verbose - timeout-minutes: 10 - + - uses: actions/checkout@v3 + - uses: Swatinem/rust-cache@v2 + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + - name: Build + run: cargo build --verbose + - name: Test + env: + RUST_LOG: ${{ runner.debug && 'limbo_core::storage=trace' || '' }} + run: cargo test --verbose + timeout-minutes: 10 clippy: runs-on: ubuntu-latest @@ -47,6 +46,12 @@ jobs: - name: Clippy run: | cargo clippy --workspace --all-features --all-targets --exclude limbo-wasm --exclude sqlite3-parser -- -A clippy::all -W clippy::correctness -W clippy::perf -W clippy::suspicious --deny=warnings + - name: Clippy `limbo-wasm` crate `nodejs` feature + run: | + cargo clippy --package limbo-wasm --features nodejs --all-targets --no-deps -- -A clippy::all -W clippy::correctness -W clippy::perf -W clippy::suspicious --deny=warnings + - name: Clippy `limbo-wasm` crate `web` feature + run: | + cargo clippy --package limbo-wasm --no-default-features --features web --all-targets --no-deps -- -A clippy::all -W clippy::correctness -W clippy::perf -W clippy::suspicious --deny=warnings build-wasm: runs-on: ubuntu-latest