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