Skip to content

Commit

Permalink
chore: Updated test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erayhanoglu committed Nov 4, 2024
1 parent 26acb85 commit a8248fe
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,28 @@ jobs:
node: [ '20' ]
postgres: [ '16' ]
runs-on: ubuntu-latest
services:
postgres:
image: postgres:${{ matrix.postgres }}
env:
POSTGRES_USER: postgres
POSTGRES_HOST_AUTH_METHOD: trust
ports:
- 5433:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v4

- name: PostgreSQL
run: |
date
echo "----- Removing pre-installed PostgreSQL -----"
sudo apt purge postgresql-14
echo "----- Installing PostgreSQL ${{ matrix.postgres }} -----"
sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
Expand Down

0 comments on commit a8248fe

Please sign in to comment.