From 2858b7d90d855fa95dc745e136376b0f892065fd Mon Sep 17 00:00:00 2001 From: Ivan Schneider Date: Thu, 19 Oct 2023 11:39:25 +0200 Subject: [PATCH] Add Postgres service --- .github/workflows/test.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a6c9e176..c3b2a945 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,10 +3,17 @@ on: [push] jobs: tests: runs-on: ubuntu-latest + services: + postgres: + image: postgres:latest + ports: + - 5432:5432 + env: + POSTGRES_USER: <%= ENV['USER'] %> + options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: bundler-cache: true - run: bundle exec rake -