Skip to content

Commit

Permalink
add postgres service to blocking workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pxp9 committed Apr 8, 2024
1 parent d6f95fc commit 847a281
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,26 @@ jobs:
env:
CARGO_TERM_COLOR: always

services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
# Set health checks to wait until postgres has started

ports:
- 5432:5432

options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
strategy:
matrix:
toolchain:
Expand Down

0 comments on commit 847a281

Please sign in to comment.