fix: add Gitea Actions CI workflow and fix logic bugs
Some checks failed
CI / lint (push) Has been cancelled
CI / build (push) Has been cancelled
CI / test (push) Has been cancelled

- Created .gitea/workflows/ci.yml with lint, build, and test jobs
- Fixed scope extraction bug in analyzer.rs (src/main.rs now returns "src")
- Fixed renamed file path assignment in git.rs (correct old_path/new_path)
This commit is contained in:
2026-02-01 12:24:36 +00:00
parent 0c03430b76
commit 361465a570

37
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,37 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup default stable
- name: Check formatting
run: cargo fmt --check --all
- name: Clippy
run: cargo clippy --all -- -D warnings
build:
runs-on: ubuntu-latest
needs: lint
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup default stable
- name: Build
run: cargo build --release
test:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup default stable
- name: Run tests
run: cargo test