From b7d7010c01f63a2495b8293c2e31ae8454b42d92 Mon Sep 17 00:00:00 2001 From: 7000pctAUTO Date: Sat, 31 Jan 2026 23:03:16 +0000 Subject: [PATCH] Fix CI workflow: specify working directory for Rust project --- .gitea/workflows/ci.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 2dae80f..109e1e1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,7 +13,27 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-rust@v1 with: - rust-version: stable + rust-version: '1.70' + components: rustfmt, clippy + - name: Set up project directory + run: mkdir -p app/api-token-vault + - name: Move to project directory + working-directory: ./app/api-token-vault - run: cargo build --all-features - - run: cargo test --all-features + - run: cargo test --all - run: cargo clippy --all-features -- -D warnings + + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-rust@v1 + with: + rust-version: '1.70' + components: rustfmt + - name: Set up project directory + run: mkdir -p app/api-token-vault + - name: Move to project directory + working-directory: ./app/api-token-vault + - name: Check formatting + run: cargo fmt -- --check