Skip to content

Commit c271b40

Browse files
Jubekidriesvints
andauthored
[11.x] Run MySQL 9 Database Integration Tests nightly (#52027)
* 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 <contact@julius-kiekbusch.de> --------- Co-authored-by: Dries Vints <dries@vints.be>
1 parent 980e8d5 commit c271b40

File tree

2 files changed

+45
-1
lines changed

2 files changed

+45
-1
lines changed

.github/workflows/databases-nightly.yml

+44
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,50 @@ on:
55
- cron: '0 0 * * *'
66

77
jobs:
8+
mysql_9:
9+
runs-on: ubuntu-24.04
10+
11+
services:
12+
mysql:
13+
image: mysql:9
14+
env:
15+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
16+
MYSQL_DATABASE: laravel
17+
ports:
18+
- 3306:3306
19+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
20+
21+
strategy:
22+
fail-fast: true
23+
24+
name: MySQL 9
25+
26+
steps:
27+
- name: Checkout code
28+
uses: actions/checkout@v4
29+
30+
- name: Setup PHP
31+
uses: shivammathur/setup-php@v2
32+
with:
33+
php-version: 8.2
34+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr
35+
tools: composer:v2
36+
coverage: none
37+
38+
- name: Set Framework version
39+
run: composer config version "11.x-dev"
40+
41+
- name: Install dependencies
42+
uses: nick-fields/retry@v3
43+
with:
44+
timeout_minutes: 5
45+
max_attempts: 5
46+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
47+
48+
- name: Execute tests
49+
run: vendor/bin/phpunit tests/Integration/Database
50+
env:
51+
DB_CONNECTION: mysql
852

953
mariadb:
1054
runs-on: ubuntu-24.04

.github/workflows/databases.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
strategy:
7171
fail-fast: true
7272

73-
name: MySQL 8.0
73+
name: MySQL 8
7474

7575
steps:
7676
- name: Checkout code

0 commit comments

Comments
 (0)