Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[11.x] CI Improvements #52850

Merged
merged 1 commit into from
Sep 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
98 changes: 52 additions & 46 deletions .github/workflows/databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
jobs:
mysql_57:
runs-on: ubuntu-24.04
timeout-minutes: 5

services:
mysql:
Expand Down Expand Up @@ -56,6 +57,7 @@ jobs:

mysql_8:
runs-on: ubuntu-24.04
timeout-minutes: 5

services:
mysql:
Expand Down Expand Up @@ -101,6 +103,7 @@ jobs:

mariadb:
runs-on: ubuntu-24.04
timeout-minutes: 5

services:
mariadb:
Expand Down Expand Up @@ -146,6 +149,7 @@ jobs:

pgsql_14:
runs-on: ubuntu-24.04
timeout-minutes: 5

services:
postgresql:
Expand Down Expand Up @@ -194,6 +198,7 @@ jobs:

pgsql_10:
runs-on: ubuntu-24.04
timeout-minutes: 5

services:
postgresql:
Expand Down Expand Up @@ -287,55 +292,56 @@ jobs:
DB_USERNAME: SA
DB_PASSWORD: Forge123

mssql_2017:
runs-on: ubuntu-22.04

services:
sqlsrv:
image: mcr.microsoft.com/mssql/server:2017-latest
env:
ACCEPT_EULA: Y
SA_PASSWORD: Forge123
ports:
- 1433:1433

strategy:
fail-fast: true

name: SQL Server 2017

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlsrv, pdo, pdo_sqlsrv, odbc, pdo_odbc, :php-psr
tools: composer:v2
coverage: none

- name: Set Framework version
run: composer config version "11.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: sqlsrv
DB_DATABASE: master
DB_USERNAME: SA
DB_PASSWORD: Forge123
# mssql_2017:
# runs-on: ubuntu-22.04

# services:
# sqlsrv:
# image: mcr.microsoft.com/mssql/server:2017-latest
# env:
# ACCEPT_EULA: Y
# SA_PASSWORD: Forge123
# ports:
# - 1433:1433

# strategy:
# fail-fast: true

# name: SQL Server 2017

# steps:
# - name: Checkout code
# uses: actions/checkout@v4

# - name: Setup PHP
# uses: shivammathur/setup-php@v2
# with:
# php-version: 8.2
# extensions: dom, curl, libxml, mbstring, zip, pcntl, sqlsrv, pdo, pdo_sqlsrv, odbc, pdo_odbc, :php-psr
# tools: composer:v2
# coverage: none

# - name: Set Framework version
# run: composer config version "11.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: sqlsrv
# DB_DATABASE: master
# DB_USERNAME: SA
# DB_PASSWORD: Forge123

sqlite:
runs-on: ubuntu-24.04
timeout-minutes: 5

strategy:
fail-fast: true
Expand Down