Skip to content

Commit

Permalink
Integrating Koanf
Browse files Browse the repository at this point in the history
  • Loading branch information
runabol committed Sep 6, 2023
1 parent 7c8d851 commit 0496fb5
Show file tree
Hide file tree
Showing 11 changed files with 318 additions and 225 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ jobs:
run: go build -v ./...

- name: Run DB migration
run: go run cmd/main.go migration -datastore postgres -postgres-dsn "host=localhost user=tork password=tork dbname=tork port=5432 sslmode=disable"
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
- name: Run tests
run: go test -v ./...
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,7 @@ go.work

# build and files
.build/
.release/
.release/

# local config
config.local.toml
Loading

0 comments on commit 0496fb5

Please sign in to comment.