Some checks failed
check / check (push) Failing after 28s
Add the standard STRTA scaffold, mirroring the conformant Go repos: - script/ POSIX-sh entrypoints (bootstrap, setup, projectname, test, lint, fmt, fmt-check, check, docker, cibuild, precommit, install-precommit). - Makefile rewritten as thin shims: .PHONY plus the nine standard targets each delegating to script/NAME; repo-specific build, clean, and try targets retained. - .golangci.yml matching the org-standard Go lint config. - Dockerfile whose build runs make check then make build, so the image fails on any check failure. - .gitea/workflows/check.yml running script/cibuild. make fmt-check and make test are green. make check is not yet green because of pre-existing lint findings in the application code, which are out of scope for this scaffold change; hence refs (not closes).
53 lines
849 B
Makefile
53 lines
849 B
Makefile
.PHONY: default bootstrap setup test lint fmt fmt-check check docker hooks build clean try
|
|
|
|
TESTDIR := $(HOME)/Documents/_SYSADMIN/cyberdyne
|
|
|
|
# Standard targets are thin shims; the implementations live in script/
|
|
# per the scripts-to-rule-them-all pattern.
|
|
|
|
default: check build
|
|
|
|
bootstrap:
|
|
@script/bootstrap
|
|
|
|
setup:
|
|
@script/setup
|
|
|
|
test:
|
|
@script/test
|
|
|
|
lint:
|
|
@script/lint
|
|
|
|
fmt:
|
|
@script/fmt
|
|
|
|
fmt-check:
|
|
@script/fmt-check
|
|
|
|
check:
|
|
@script/check
|
|
|
|
docker:
|
|
@script/docker
|
|
|
|
hooks:
|
|
@script/install-precommit
|
|
|
|
build: clean
|
|
@go build .
|
|
|
|
clean:
|
|
@rm -f attrsum
|
|
|
|
try: build
|
|
./attrsum sum add -v $(TESTDIR)
|
|
./attrsum check -v $(TESTDIR)
|
|
./attrsum clear -v $(TESTDIR)
|
|
-./attrsum check -v $(TESTDIR)
|
|
./attrsum sum add -v $(TESTDIR)
|
|
./attrsum check -v $(TESTDIR)
|
|
touch $(TESTDIR)/*
|
|
./attrsum sum update -v $(TESTDIR)
|
|
./attrsum check -v $(TESTDIR)
|