ci: add Forgejo Actions workflow #5
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/init-ci"
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?
Adds a Forgejo Actions workflow (
.forgejo/workflows/ci.yml) running on every push tomainand every pull request, in three parallel jobs:lint:devbox run -- task lint(rustfmt, clippy with-D warnings, taplo, vue-tsc / tsc);test-rust:devbox run -- task test:rust, with the Cargo registry andtarget/cached;test-web:devbox run -- task test:web, then a build ofgear-webas a smoke check, uploaded as an artifact for 7 days.Every job installs the toolchain through devbox, so
devbox.jsonstays the single source of truth for tool versions. Runner workarounds:devbox-install-actionand of the cache action;PATH.The READMEs (en, fr) describe the CI.
The branch is 13 commits behind
mainand needs a rebase before merging.10843df4a1a4b7db054ash:so PATH override actually applies 0305c6111dsh:var and target the fork's main branchTwo independent fixes on top of the previous attempt: - **Taskfile — inline bun resolution.** The earlier `env: PATH: {sh: ...}` at the top level did not survive the `devbox run -- task` chain (previous run kept SIGILLing at exit 132 on `bun install`). Devbox enters a Nix shell that prepends its own store bins to PATH, and Task's env-level override is either dropped or overridden by that shell. Replace the PATH trick with a `vars.BUN` computed via `sh:` that resolves once — `$HOME/.bun/bin/bun` if the baseline is installed, plain `bun` otherwise — then inject `{{.BUN}}` at every bun call site. This forces the absolute path into the argv passed to sh -c, so devbox's PATH can no longer win. - **Cache action — target `@main`.** `code.forgejo.org/actions/cache@v4` still emitted the GHES-version warning on the last run, meaning that tag mirrors upstream unmodified. `@main` is where the Forgejo team's patches actually land — pointing there gets us the ACTIONS_CACHE_URL passthrough that skips the GHES probe.feat/init-cito ci: add Forgejo Actions workflowView command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.