From ca8043b0659166c2c0514e9209474844ce056c07 Mon Sep 17 00:00:00 2001 From: Tyrese Luo Date: Thu, 28 Nov 2024 14:03:43 +0800 Subject: [PATCH] Update ci config --- .github/workflows/main.yml | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 70f5a5b0..a6a89719 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -39,9 +39,7 @@ env: CARGO_INCREMENTAL: "0" # Disable incremental compilation in CI RUST_BACKTRACE: 1 # Enable warnings as errors for strict checks - RUSTFLAGS: "-A warnings" - # For special compile - rust_nightly: nightly-2024-10-20 + RUSTFLAGS: "-D warnings" jobs: # Basic compilation check to ensure code builds @@ -75,4 +73,13 @@ jobs: cache-on-failure: "true" # Run clippy with custom configuration for makepad DSL # Allow pedantic / needless_lifetimes / too_many_arguments - - run: cargo clippy --workspace --examples --tests --all-features --all-targets \ No newline at end of file + - run: cargo clippy --workspace --examples --tests --all-features --all-targets + + typos: + if: github.event.pull_request.draft == false + name: Check for typos + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check for typos + uses: crate-ci/typos@master \ No newline at end of file