From 726d687c51ff5389838223047d5cf9a9605adf3e Mon Sep 17 00:00:00 2001 From: Dries Vints Date: Fri, 3 Dec 2021 16:55:55 +0100 Subject: [PATCH] Re-enable PostgreSQL build --- .github/workflows/databases.yml | 86 ++++++++++++++++----------------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/.github/workflows/databases.yml b/.github/workflows/databases.yml index 9911b94182e3..f23b92ea45b6 100644 --- a/.github/workflows/databases.yml +++ b/.github/workflows/databases.yml @@ -132,49 +132,49 @@ jobs: DB_CONNECTION: mysql DB_USERNAME: root - # pgsql: - # runs-on: ubuntu-20.04 - - # services: - # postgresql: - # image: postgres:14 - # env: - # POSTGRES_DB: forge - # 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 14 - - # steps: - # - name: Checkout code - # uses: actions/checkout@v2 - - # - name: Setup PHP - # uses: shivammathur/setup-php@v2 - # with: - # php-version: 8.1 - # extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql - # tools: composer:v2 - # coverage: none - - # - name: Install dependencies - # uses: nick-invision/retry@v1 - # 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 --verbose - # env: - # DB_CONNECTION: pgsql - # DB_PASSWORD: password + pgsql: + runs-on: ubuntu-20.04 + + services: + postgresql: + image: postgres:14 + env: + POSTGRES_DB: forge + 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 14 + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: 8.1 + extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_pgsql + tools: composer:v2 + coverage: none + + - name: Install dependencies + uses: nick-invision/retry@v1 + 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 --verbose + env: + DB_CONNECTION: pgsql + DB_PASSWORD: password mssql: runs-on: ubuntu-20.04