From ccd4c5f08358a2f966f63da252b9221cfcac6513 Mon Sep 17 00:00:00 2001 From: tatiesmars Date: Thu, 26 Mar 2026 09:12:02 +0700 Subject: [PATCH] fix ci --- .github/workflows/ci.yml | 41 +++++++++++++++++++++++++++++++--------- 1 file changed, 32 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c373ef5..45a2104 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,14 +9,37 @@ on: - "chore/**" - "hotfix/**" +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: checks: - uses: aukilabs/github-actions/.github/workflows/rust-workflow.yml@v2 - with: - work_dir: server/rust - enable_test: true - enable_build: false - test_command: | - cargo fmt --all -- --check - cargo clippy --workspace --all-targets --all-features -- -D warnings - cargo test --workspace --all-features + name: Checks + runs-on: ubuntu-latest + + steps: + - name: Check out code + uses: actions/checkout@v4 + + - name: Set up Rust toolchain + uses: dtolnay/rust-toolchain@stable + with: + components: clippy, rustfmt + + - name: Cache cargo + uses: Swatinem/rust-cache@v2 + with: + workspaces: server/rust + + - name: Rust fmt check + working-directory: server/rust + run: cargo fmt --all --check + + - name: Rust clippy (deny warnings) + working-directory: server/rust + run: cargo clippy --workspace --all-targets --all-features -- -D warnings + + - name: Rust tests + working-directory: server/rust + run: cargo test --workspace --all-features --locked