release / go (push) Successful in 2m1s
release / web (push) Successful in 1m18s
release / govulncheck (push) Successful in 20s
release / integration (push) Successful in 4m11s
release / android (push) Successful in 4m4s
release / Build signed APK (push) Successful in 4m33s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 29s
release / Verify release artifacts (tag releases only) (push) Skipped
A sweep of the export (git archive) against the release leak standard: - Internal ids in comments: a split "(rule 157)", two "RULE 131" headers and a "Preference 172" the id search missed because it was case-sensitive. - Comments that quoted or credited the operator (shuffle caps, mix rotation, player bar layout, ID3v1 table). - Real artists still in the suspect-source fixtures (and the Beck example in its comment): replaced with invented ones in the same file shapes. - "26,171 tracks", a count from a real library, in the plural examples: now 12,345. - Comments pointing at CI files the export leaves out (release.yml, the ci-go image, the Gitea keystore secret, an M8 milestone, .dockerignore history); client/README describes the release image, not the lanes. - renovate.json is export-ignore: it targets the workbench's dev branch. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
50 lines
1.9 KiB
Makefile
50 lines
1.9 KiB
Makefile
.PHONY: generate generate-go verify-generate test test-short test-integration lint build
|
|
|
|
# renovate: datasource=docker depName=sqlc/sqlc
|
|
SQLC_VERSION := 1.31.1
|
|
|
|
# Local codegen. Containerised so a dev needs no sqlc install.
|
|
generate:
|
|
docker run --rm -v "$(CURDIR):/src" -w /src sqlc/sqlc:$(SQLC_VERSION) generate
|
|
|
|
# Same codegen, run as a Go tool instead of a container, for a machine that
|
|
# has Go but no Docker. Pinned to the
|
|
# SAME version as `generate` above so both routes emit identical output.
|
|
generate-go:
|
|
go run github.com/sqlc-dev/sqlc/cmd/sqlc@v$(SQLC_VERSION) generate
|
|
|
|
# Fail if the committed generated code no longer matches the .sql sources:
|
|
# a hand-edit, a half-applied regen, or a schema change without a regen.
|
|
#
|
|
# The diff is printed BEFORE the exit-code check on purpose: when this fails,
|
|
# the log then contains sqlc's exact expected output, which is what you commit.
|
|
verify-generate: generate-go
|
|
# -N (intent-to-add) so a BRAND-NEW generated file is visible to `git
|
|
# diff`, which otherwise ignores untracked paths entirely — a whole
|
|
# missing *.sql.go would sail through the check below.
|
|
git add -N -- internal/db/dbq
|
|
git --no-pager diff -- internal/db/dbq
|
|
git diff --quiet -- internal/db/dbq
|
|
|
|
test:
|
|
go test -race ./...
|
|
|
|
test-short:
|
|
go test -short -race ./...
|
|
|
|
# Full suite incl. integration tests, against the dedicated minstrel_test
|
|
# DB so a run never truncates the dev `minstrel` DB. Ensures the test DB
|
|
# exists (createdb fails harmlessly if it is already there).
|
|
test-integration:
|
|
docker compose up -d postgres
|
|
-docker compose exec -T postgres createdb -U minstrel minstrel_test
|
|
# -p 1: integration packages share one test DB and each TRUNCATEs it;
|
|
# concurrent package binaries deadlock on TRUNCATE. Serialize packages.
|
|
MINSTREL_TEST_DATABASE_URL=postgres://minstrel:minstrel@localhost:5432/minstrel_test?sslmode=disable go test -p 1 -race ./...
|
|
|
|
lint:
|
|
golangci-lint run ./...
|
|
|
|
build:
|
|
go build -o bin/minstrel ./cmd/minstrel
|