From 3a938191fd171718de17d4c44e5c6fba9092f896 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 23:13:33 +0000 Subject: [PATCH] Fix CI workflow: update actions/setup-rust to v4, use stable Rust, fix test command --- .gitea/workflows/ci.yml | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bbc83b1..a5635f3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -3,21 +3,32 @@ name: CI on: push: branches: [main] - paths-ignore: - - 'api-token-vault/**' pull_request: branches: [main] - paths-ignore: - - 'api-token-vault/**' jobs: test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-rust@v1 + - uses: actions/setup-rust@v4 with: rust-version: stable - - run: cargo build --all-features - - run: cargo test --all-features - - run: cargo clippy --all-features -- -D warnings + components: rustfmt, clippy + - name: Build + run: cargo build --all-features + - name: Run tests + run: cargo test + - name: Clippy + run: cargo clippy --all-features -- -D warnings + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-rust@v4 + with: + rust-version: stable + components: rustfmt + - name: Check formatting + run: cargo fmt -- --check