Skip to content

Commit

Permalink
Added a configs directory
Browse files Browse the repository at this point in the history
  • Loading branch information
runabol committed Sep 7, 2023
1 parent c898d6e commit b8ed643
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ jobs:

- name: Run DB migration
run: |
set -e
printf "[datastore]\ntype = \"postgres\"\n[datastore.postgres]\ndsn = \"host=localhost user=tork password=tork dbname=tork port=5432 sslmode=disable\"" > config.toml
go run cmd/main.go migration
go run cmd/main.go --config configs/config.ci.toml migration
- name: Run tests
run: go test -v ./...
5 changes: 5 additions & 0 deletions configs/config.ci.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[datastore]
type = "postgres"

[datastore.postgres]
dsn = "host=localhost user=tork password=tork dbname=tork port=5432 sslmode=disable"
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ services:
image: golang:1.19
working_dir: /code
command: |
go run cmd/main.go --config config.compose.toml migration
go run cmd/main.go --config configs/config.compose.toml migration
volumes:
- .:/code
depends_on:
Expand Down

0 comments on commit b8ed643

Please sign in to comment.