From daf7a288b00ec6d07abcb17e33933b0c58657ab9 Mon Sep 17 00:00:00 2001 From: JurianArie <28654085+JurianArie@users.noreply.github.com> Date: Wed, 1 Oct 2025 13:31:28 +0200 Subject: [PATCH] Add PostgreSQL 18 workflow to CI configuration --- .github/workflows/databases.yml | 49 +++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/.github/workflows/databases.yml b/.github/workflows/databases.yml index bd20bfad48bd..6172854ee02f 100644 --- a/.github/workflows/databases.yml +++ b/.github/workflows/databases.yml @@ -147,6 +147,55 @@ jobs: env: DB_CONNECTION: mariadb + pgsql_18: + runs-on: ubuntu-24.04 + timeout-minutes: 5 + + services: + postgresql: + image: postgres:18 + env: + POSTGRES_DB: laravel + POSTGRES_USER: forge + POSTGRES_PASSWORD: password + ports: + - 5432:5432 + options: --health-cmd=pg_isready --health-interval=10s --health-timeout=5s --health-retries=3 + + strategy: + fail-fast: true + + name: PostgreSQL 18 + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.3 + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql, :php-psr + tools: composer:v2 + coverage: none + + - name: Set Framework version + run: composer config version "12.x-dev" + + - name: Install dependencies + uses: nick-fields/retry@v3 + with: + timeout_minutes: 5 + max_attempts: 5 + command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress + + - name: Execute tests + run: vendor/bin/phpunit tests/Integration/Database + env: + DB_CONNECTION: pgsql + DB_USERNAME: forge + DB_PASSWORD: password + pgsql_14: runs-on: ubuntu-24.04 timeout-minutes: 5