Skip to content

Commit

Permalink
Update go.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Josehpequeno authored Jun 18, 2024
1 parent fc3708d commit b5a2f88
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@ jobs:

build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_DB: documentmanager
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v4

Expand All @@ -21,6 +32,15 @@ jobs:
with:
go-version: '1.20'

- name: Export variables
run: |
export DB_HOST=localhost &&
export DB_PORT=5432 &&
export DB_USER=postgres &&
export DB_PASSWORD=postgres &&
export DB_NAME=documentmanager &&
export API_SECRET=tESTsecret
- name: Build
run: go build -v ./...

Expand Down

0 comments on commit b5a2f88

Please sign in to comment.