Update CHANGELOG #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests-for-databases | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| mysql_57: | |
| runs-on: ubuntu-24.04 | |
| services: | |
| mysql: | |
| image: mysql:5.7 | |
| env: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
| MYSQL_DATABASE: laravel | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| strategy: | |
| fail-fast: true | |
| name: MySQL 5.7 | |
| 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, pdo, pdo_mysql, :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 | |
| env: | |
| DB_CONNECTION: mysql | |
| DB_COLLATION: utf8mb4_unicode_ci | |
| mysql_8: | |
| runs-on: ubuntu-24.04 | |
| services: | |
| mysql: | |
| image: mysql:8 | |
| env: | |
| MYSQL_ALLOW_EMPTY_PASSWORD: yes | |
| MYSQL_DATABASE: laravel | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| strategy: | |
| fail-fast: true | |
| name: MySQL 8 | |
| 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, pdo, pdo_mysql, :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 | |
| env: | |
| DB_CONNECTION: mysql | |
| mariadb: | |
| runs-on: ubuntu-24.04 | |
| services: | |
| mariadb: | |
| image: mariadb:10 | |
| env: | |
| MARIADB_ALLOW_EMPTY_ROOT_PASSWORD: yes | |
| MARIADB_DATABASE: laravel | |
| ports: | |
| - 3306:3306 | |
| options: --health-cmd="healthcheck.sh --connect --innodb_initialized" --health-interval=10s --health-timeout=5s --health-retries=3 | |
| strategy: | |
| fail-fast: true | |
| name: MariaDB 10 | |
| 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, pdo, pdo_mysql, :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 | |
| env: | |
| DB_CONNECTION: mariadb | |
| pgsql: | |
| runs-on: ubuntu-24.04 | |
| services: | |
| postgresql: | |
| image: postgres:14 | |
| 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 14 | |
| 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, 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 | |
| env: | |
| DB_CONNECTION: pgsql | |
| DB_USERNAME: forge | |
| DB_PASSWORD: password | |
| mssql: | |
| runs-on: ubuntu-24.04 | |
| services: | |
| sqlsrv: | |
| image: mcr.microsoft.com/mssql/server:2019-latest | |
| env: | |
| ACCEPT_EULA: Y | |
| SA_PASSWORD: Forge123 | |
| ports: | |
| - 1433:1433 | |
| name: SQL Server 2019 | |
| 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: Install SQL Server ODBC Driver and Tools | |
| run: | | |
| curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
| curl https://packages.microsoft.com/config/ubuntu/22.04/prod.list | sudo tee /etc/apt/sources.list.d/msprod.list | |
| sudo apt-get update | |
| sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 mssql-tools18 unixodbc-dev | |
| echo "/opt/mssql-tools18/bin" >> $GITHUB_PATH | |
| - name: Set Framework version | |
| run: composer config version "12.x-dev" | |
| - name: Install dependencies | |
| run: composer update --prefer-stable --prefer-dist --no-interaction --no-progress | |
| - name: Wait for SQL Server to be ready | |
| run: | | |
| echo "Waiting for SQL Server to start..." | |
| for i in {1..30}; do | |
| sqlcmd -S localhost -U SA -P Forge123 -Q "SELECT 1" -C && break | |
| echo "SQL Server is starting up..." | |
| sleep 2 | |
| done | |
| - name: Execute tests | |
| run: vendor/bin/phpunit | |
| env: | |
| DB_CONNECTION: sqlsrv | |
| DB_HOST: localhost | |
| DB_PORT: 1433 | |
| DB_DATABASE: master | |
| DB_USERNAME: SA | |
| DB_PASSWORD: Forge123 | |
| DB_ENCRYPT: true | |
| DB_TRUST_SERVER_CERTIFICATE: true |