👷 Add CI: Rust and frontend checks #4
Loading…
Reference in a new issue
No description provided.
Delete branch "ci-rust-frontend"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The MVP is on
mainbut nothing verifies it automatically —make testonly runs if someone remembers to. This adds Forgejo Actions CI, matching the runner setup already proven on this instance (ubuntu-latest, Docker execution, per-jobcontainer:images).What it does
Two jobs in
.forgejo/workflows/ci.yml, triggered on PRs to main, pushes to main, and manual dispatch (redundant runs on the same PR are cancelled):rust:1, same major version as the Dockerfile):rustup component add rustfmt clippy,cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo testnode:22, same as the Dockerfile):npm ci,npm run check(svelte-check + tsc),npm test(vitest),npm run buildE2e (Playwright) follows in a stacked PR — it needs a small config change to run on the CI image's Chromium.
Considerations
actions/checkout: JS actions runnodeinside the job container (confirmed on this runner: exit 127), and the official Rust image has no Node.gitships inrust:1and the repo is public, so a plain clone ofgithub.head_ref || github.ref_nameworks for PRs, pushes, and manual dispatch. Caveat: PRs from forks of this repo wouldn't resolve — fine for a solo project.rustup component add rustfmt clippyis needed because currentrust:images ship a minimal toolchain.WIP: 👷 Add CI: Rust and frontend checksto 👷 Add CI: Rust and frontend checks