Skip to content

chore: run the database tests, a gofmt check and a Docker build in CI - #59

Merged
flthibaud merged 1 commit into
developfrom
chore/ci-postgres
Nov 11, 2026
Merged

flthibaud merged 1 commit into
developfrom
chore/ci-postgres

Conversation

@flthibaud

Copy link
Copy Markdown
Owner

CI had no database, so every internal/data test skipped there while still printing ok.

  • Postgres in the Go job: a postgres:16 service, DATABASE_URL, and a go run ./cmd/api --migrate-only step before the tests (the tests do not migrate). That step also fails the job if the database is unreachable, instead of a silent skip.
  • gofmt check: test -z "$(gofmt -l .)".
  • Docker build on pull requests: the image job now also runs on PRs, with push: false and no registry login, so a broken Dockerfile is caught before the merge. Pushes behave as before.
  • AGENTS.md and CONTRIBUTING.md updated to match.

The same recipe (throwaway postgres:16, --migrate-only, go test -race ./...) passes locally with no test skipped.

@flthibaud
flthibaud merged commit 8cdb239 into develop Nov 11, 2026
5 checks passed
@flthibaud
flthibaud deleted the chore/ci-postgres branch November 11, 2026 23:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant