Skip to content

Commit

Permalink
ci: Add postgres to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jholdstock committed Nov 3, 2020
1 parent e1e81d9 commit 9cf90cd
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,21 @@ jobs:
strategy:
matrix:
go: [1.14, 1.15]

services:
postgres:
image: postgres:13.0
env:
POSTGRES_USER: dcrpooluser
POSTGRES_PASSWORD: 12345
POSTGRES_DB: dcrpooltestdb
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Set up Go
uses: actions/setup-go@v2
Expand Down

0 comments on commit 9cf90cd

Please sign in to comment.