Initial phase 1 baseline implementation
This commit is contained in:
parent
099c53badf
commit
077cf7601a
29 changed files with 1339 additions and 39 deletions
|
|
@ -1,7 +1,20 @@
|
|||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
test -z "$(gofmt -l cmd internal)"
|
||||
test -z "$(gofmt -l cmd internal db)"
|
||||
|
||||
generated_hash() {
|
||||
find internal/adapters/postgres/generated -type f -print0 \
|
||||
| sort -z \
|
||||
| xargs -0 sha256sum \
|
||||
| sha256sum
|
||||
}
|
||||
|
||||
generated_before="$(generated_hash)"
|
||||
sqlc generate
|
||||
generated_after="$(generated_hash)"
|
||||
test "$generated_before" = "$generated_after"
|
||||
|
||||
go vet ./cmd/... ./internal/...
|
||||
go test -race ./cmd/... ./internal/...
|
||||
npm --prefix web run check
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue