Skip to content

Commit

Permalink
errors fixed, and now adding protgress and migrations up
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
1Shubham7 authored Sep 15, 2024
1 parent 2d874e0 commit 81a66dd
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,22 @@ jobs:

build:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:12
env:
POSTGRES_USER: root
POSTGRES_PASSWORD: secret
POSTGRES_DB: simple_bank
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v4 #these are already build actions that we can use

Expand All @@ -22,5 +38,8 @@ jobs:
with:
go-version: '1.23'

- name: migrations
run: make migrateup

- name: Test
run: make test

0 comments on commit 81a66dd

Please sign in to comment.