Skip to content

Commit

Permalink
Update configs for the test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Delavalom authored Oct 1, 2023
1 parent ab07628 commit 6641968
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion .env.example

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@
# Go workspace file
go.work

app.env
.env
6 changes: 3 additions & 3 deletions makefile → Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!make
include app.env
DB_SOURCE=postgresql://root:secret@localhost:5432/RDB?sslmode=disable

postgres:
docker run --name postgres12 -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=secret -d postgres:12-alpine
Expand All @@ -9,9 +9,9 @@ dropdb:
docker exec -it postgres12 dropdb RBD

migrateup:
migrate -path db/migrations -database "${DB_SOURCE}" -verbose up 1
migrate -path db/migrations -database "$(DB_SOURCE)" -verbose up 1
migratedown:
migrate -path db/migrations -database "${DB_SOURCE}" -verbose down 1
migrate -path db/migrations -database "$(DB_SOURCE)" -verbose down 1

sqlc:
sqlc generate
Expand Down
1 change: 1 addition & 0 deletions app.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DB_SOURCE=postgresql://root:secret@localhost:5432/RBD?sslmode=disable

0 comments on commit 6641968

Please sign in to comment.