From 92569ae53ed93b6c3f6a9baf9247eddc753c02e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20Hano=C4=9Flu?= Date: Wed, 16 Oct 2024 00:04:15 +0300 Subject: [PATCH] chore: Updated config --- .github/workflows/test.yml | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a122ec8..5c50f21 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,20 +11,6 @@ jobs: node: [ '20' ] postgres: [ '14' ] 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 @@ -32,6 +18,8 @@ jobs: - name: PostgreSQL run: | date + echo "----- Remove the pre-installed PostgreSQL -----" + sudo apt-get remove --purge postgresql-16 postgresql-client-16 -y 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 -