From 7f52b0b99893ec1fc30d8f82cd1bc3d1683bd596 Mon Sep 17 00:00:00 2001 From: Nessar Date: Mon, 16 Nov 2026 19:06:52 +0100 Subject: [PATCH] Add CI workflow checking the core crate Runs cargo fmt, clippy with warnings as errors and cargo test on the core crate for every pull request and push to main (ticket #15). The app crate is left out: it only builds on Windows (ADR-0003). Co-Authored-By: Claude Fable 5.2 --- .gitea/workflows/ci.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..205f919 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,28 @@ +# Only the core crate is checked: the app crate (GPUI) only builds on Windows (ADR-0003). +name: CI + +on: + pull_request: + push: + branches: + - main + +jobs: + core: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Rust stable (rustfmt, clippy) + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --profile minimal --component rustfmt,clippy + echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" + + - name: Format + run: cargo fmt -p arena-tracker-core --check + + - name: Clippy + run: cargo clippy -p arena-tracker-core --all-targets --locked -- -D warnings + + - name: Tests + run: cargo test -p arena-tracker-core --locked