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 <noreply@anthropic.com>
This commit is contained in:
nessarandClaude Fable 5.2 committed 2026-11-16 19:06:52 +01:00
1 parent 6b91cd4490
commit 7f52b0b998
1 file changed
+28
+28
View File
@@ -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