From 4865862d1e30e0c5d5eff8916c336d136c407266 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Wed, 4 Feb 2026 10:16:46 +0000 Subject: [PATCH] chore: Update CI with proper build, test, and lint --- .gitea/workflows/ci.yml | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9cfdbfc..3e1b59d 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -20,4 +20,35 @@ jobs: uses: dtolnay/rust-toolchain@stable - name: Check build - run: cargo check --no-default-features 2>&1 || true \ No newline at end of file + run: cargo check --no-default-features + + test: + runs-on: ubuntu-latest + needs: check + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + + - name: Run tests + run: cargo test --no-default-features + + lint: + runs-on: ubuntu-latest + needs: check + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Rust + uses: dtolnay/rust-toolchain@stable + with: + components: rustfmt, clippy + + - name: Check formatting + run: cargo fmt --check --no-default-features + + - name: Run clippy + run: cargo clippy --no-default-features -- -D warnings