Merged in bugfix/cleanup (pull request #10)

Clean Up Testing and Linting

* somescriptcleanup

* mostgolangci

* deplatest

* imageversions

* usingscratch

* movedqueuefrtesting

* finishedunittesting

* linting

* taskfilecontext
This commit is contained in:
Michael McGuinness
2025-01-10 11:12:03 +00:00
parent 57764272c3
commit 0ebb8a21a1
62 changed files with 940 additions and 357 deletions
+7 -4
View File
@@ -1,15 +1,18 @@
---
# https://taskfile.dev
version: '3'
vars:
MIGRATIONS: "{{.CONTEXT}}/database/migrations"
DATABASE_URI: "postgres://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}?sslmode=disable"
MIGRATIONS: "database/migrations"
tasks:
generate:
cmds:
- sqlc generate --file ../sqlc.yml
- |
task compose:up:bg
task db:mig:run
sqlc generate --file ../sqlc.yml
lint:
cmds:
- sqlc vet --file ../sqlc.yml
@@ -21,4 +24,4 @@ tasks:
migrate create -ext sql -dir {{.MIGRATIONS}} $name
mig:run:
cmds:
- migrate -path {{.MIGRATIONS}} -database {{.DATABASE_URI}} up
- migrate -path {{.MIGRATIONS}} -database {{.DB_URI}} up