Skip to content

Commit

Permalink
Moving CI postgres setup from container to inline runner to hopefully…
Browse files Browse the repository at this point in the history
… work on Windows
  • Loading branch information
jwoertink committed Oct 13, 2024
1 parent bf4fa55 commit 7d37f16
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,22 +55,30 @@ jobs:
os: ubuntu-latest
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
services:
postgres:
image: postgres:${{ matrix.postgres_version }}-alpine
env:
POSTGRES_USER: lucky
POSTGRES_PASSWORD: developer
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
# services:
# postgres:
# image: postgres:${{ matrix.postgres_version }}-alpine
# env:
# POSTGRES_USER: lucky
# POSTGRES_PASSWORD: developer
# ports:
# - 5432:5432
# # needed because the postgres container does not provide a healthcheck
# options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- name: Setup PostgreSQL Client v${{ matrix.postgres_version }}
uses: tj-actions/install-postgresql@v3
- name: Setup PostgreSQL v${{ matrix.postgres_version }}
uses: ikalnytskyi/action-setup-postgres@v6
with:
postgresql-version: ${{ matrix.postgres_version }}
username: lucky
password: developer
port: 5432
postgres-version: ${{ matrix.postgres_version }}

# - name: Setup PostgreSQL Client v${{ matrix.postgres_version }}
# uses: tj-actions/install-postgresql@v3
# with:
# postgresql-version: ${{ matrix.postgres_version }}

- uses: crystal-lang/install-crystal@v1
with:
Expand Down

0 comments on commit 7d37f16

Please sign in to comment.