check / check (push) Waiting to run
The shared files are the sneak/prompts copies at dd4027b, with this repository's own entries after them. make lint and make test each build one Dockerfile phase without the cache, both covering the frontend through a node stage; the builder stage waits on both and takes its version from git describe unless VERSION is given. 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, which the shared workflow no longer does. 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
55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
.PHONY: bootstrap setup dev build test lint fmt fmt-check check \
|
|
add-dependency tidy frontend-viewport-test docker hooks
|
|
|
|
# Standard targets are thin shims; the implementations live in script/
|
|
# per the scripts-to-rule-them-all pattern (see the Entrypoints section
|
|
# of README.md). test, lint, fmt, fmt-check and check cover the whole
|
|
# repo: the frontend here and the Go backend in backend/.
|
|
|
|
bootstrap:
|
|
@script/bootstrap
|
|
|
|
setup:
|
|
@script/setup
|
|
|
|
dev:
|
|
@script/dev
|
|
|
|
# The frontend only; backend/Makefile's build target builds the Go server.
|
|
build:
|
|
@script/build
|
|
|
|
test:
|
|
@script/test
|
|
|
|
lint:
|
|
@script/lint
|
|
|
|
fmt:
|
|
@script/fmt
|
|
|
|
fmt-check:
|
|
@script/fmt-check
|
|
|
|
check:
|
|
@script/check
|
|
|
|
# make add-dependency PACKAGE=<name>@<version>. PACKAGE reaches the
|
|
# script through the environment, so the shell never reads it as code.
|
|
add-dependency:
|
|
@script/add-dependency "$$PACKAGE"
|
|
|
|
tidy:
|
|
@script/tidy
|
|
|
|
# Responsive-layout verification in a containerised browser. Kept out of
|
|
# check: it takes minutes.
|
|
frontend-viewport-test:
|
|
@script/frontend-viewport-test
|
|
|
|
docker:
|
|
@script/docker
|
|
|
|
hooks:
|
|
@script/install-precommit
|