Skip to content

Commit 2bffeb0

Browse files
committed
Use static port binding
1 parent ba90ecd commit 2bffeb0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/testing.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
services:
1515
postgres:
1616
image: postgres:9.6
17+
ports:
18+
- 5432:5432
1719
env:
1820
POSTGRES_USER: test
1921
POSTGRES_PASSWORD: test
@@ -33,7 +35,7 @@ jobs:
3335
if: success()
3436
run: go test -timeout 60s -cover ./... -coverprofile=coverage.txt -covermode=atomic
3537
env:
36-
PG_URI: "postgres://test:test@postgres:5432/test?sslmode=disable"
38+
PG_URI: "postgres://test:test@localhost:5432/test?sslmode=disable"
3739

3840
- name: Upload coverage to Codecov
3941
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)