Skip to content

Commit

Permalink
[11.x] Run MySQL 9 Database Integration Tests nightly (#52027)
Browse files Browse the repository at this point in the history
* Run MySQL 9 Database Integration Tests nightly

* Update workflow name

* Apply suggestions from code review

* Update .github/workflows/databases-nightly.yml

Co-authored-by: Julius Kiekbusch <[email protected]>

---------

Co-authored-by: Dries Vints <[email protected]>
  • Loading branch information
Jubeki and driesvints authored Jul 5, 2024
1 parent 980e8d5 commit c271b40
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 1 deletion.
44 changes: 44 additions & 0 deletions .github/workflows/databases-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,50 @@ on:
- cron: '0 0 * * *'

jobs:
mysql_9:
runs-on: ubuntu-24.04

services:
mysql:
image: mysql:9
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 9

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 "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: mysql

mariadb:
runs-on: ubuntu-24.04
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/databases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
strategy:
fail-fast: true

name: MySQL 8.0
name: MySQL 8

steps:
- name: Checkout code
Expand Down

0 comments on commit c271b40

Please sign in to comment.