check / check (push) Waiting to run
The shared files are the sneak/prompts copies at dd4027b, plus this repository's own entries. make lint and make test each build one Dockerfile phase without the cache, both covering the frontend; the builder stage waits on both and takes its version from git describe unless VERSION is given. The test phase keeps Go's module and build caches in memory, out of the image make test tags. golangci-lint moves to v2.14.0 with the new .golangci.yml; one test spells X-Request-ID as canonicalheader asks. prettier formats only JavaScript, CSS, HTML and Markdown, so .golangci.yml stays as fetched. script/fmt and script/fmt-check put ~/.local/bin on PATH. script/bootstrap keeps a Go only if it is exactly GO_VERSION, and re-checks the go on PATH after installing. Model: opus-5-5
17 lines
502 B
Bash
Executable File
17 lines
502 B
Bash
Executable File
#!/bin/sh
|
|
# script/frontend-fmt: format the JavaScript, CSS, HTML and Markdown,
|
|
# repo-wide (writes), the markdown in backend/ included. Those are the
|
|
# languages REPO_POLICIES.md gives prettier; the YAML is left alone, as
|
|
# backend/.golangci.yml must stay the org standard byte for byte.
|
|
# Prettier does not read Go; backend/script/fmt formats the Go sources.
|
|
set -eu
|
|
|
|
ROOT="$(cd "$(dirname "$0")/.." && pwd -P)"
|
|
|
|
main() {
|
|
cd "$ROOT"
|
|
yarn prettier --write '**/*.{js,css,html,md}'
|
|
}
|
|
|
|
main "$@"
|