From 081d90ad68ab0310a5b0303b6713803059035fd4 Mon Sep 17 00:00:00 2001 From: Jean Date: Tue, 14 Jul 2026 23:14:52 +0000 Subject: [PATCH] Add CI: build, clippy (-D warnings), and test on push Push-to-deploy had no automated gate. This Forgejo Actions workflow builds the workspace, runs clippy as an error gate, and runs the tests on every push and PR. Adjust runs-on to match the runner's label. --- .forgejo/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .forgejo/workflows/ci.yml diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..1cee689 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -0,0 +1,26 @@ +# Build, lint, and test on every push and pull request. Adjust `runs-on` to a +# label your Forgejo runner advertises (commonly `ubuntu-latest` or `docker`). +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + check: + runs-on: ubuntu-latest + container: + image: rust:1-bookworm + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Build + run: cargo build --workspace --locked + + - name: Clippy (warnings are errors) + run: cargo clippy --workspace --locked -- -D warnings + + - name: Test + run: cargo test --workspace --locked