Skip to content

Commit

Permalink
added postgres service
Browse files Browse the repository at this point in the history
  • Loading branch information
prosenjitjoy committed Sep 10, 2023
1 parent a326726 commit 7ef6070
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,26 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: bankdb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'

- name: Run migrations
run: make migrate_up
- name: Test
run: make run_test

0 comments on commit 7ef6070

Please sign in to comment.