Skip to content

Commit 259911e

Browse files
debug: separate mysql 6 GitHub action
1 parent bcb490e commit 259911e

6 files changed

+67
-0
lines changed

.github/workflows/tests-for-laravel-versions.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- ".github/workflows/tests-for-postgres.yml"
1010
- ".github/workflows/test-for-mariadb.yml"
1111
- ".github/workflows/tests-for-mysql.yml"
12+
- ".github/workflows/tests-for-mysql8.yml"
1213
- "phpunit.xml.dist"
1314
- "composer.json"
1415
- "composer.lock"

.github/workflows/tests-for-mariadb.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- ".github/workflows/tests-for-postgres.yml"
1010
- ".github/workflows/test-for-mariadb.yml"
1111
- ".github/workflows/tests-for-mysql.yml"
12+
- ".github/workflows/tests-for-mysql8.yml"
1213
- "phpunit.xml.dist"
1314
- "composer.json"
1415
- "composer.lock"

.github/workflows/tests-for-mysql.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- ".github/workflows/tests-for-postgres.yml"
1010
- ".github/workflows/test-for-mariadb.yml"
1111
- ".github/workflows/tests-for-mysql.yml"
12+
- ".github/workflows/tests-for-mysql8.yml"
1213
- "phpunit.xml.dist"
1314
- "composer.json"
1415
- "composer.lock"
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: tests-for-mysql8
2+
3+
on:
4+
push:
5+
paths:
6+
- "**.php"
7+
- ".github/workflows/tests-for-laravel-versions.yml"
8+
- ".github/workflows/tests-for-sql-server.yml"
9+
- ".github/workflows/tests-for-postgres.yml"
10+
- ".github/workflows/test-for-mariadb.yml"
11+
- ".github/workflows/tests-for-mysql.yml"
12+
- ".github/workflows/tests-for-mysql8.yml"
13+
- "phpunit.xml.dist"
14+
- "composer.json"
15+
- "composer.lock"
16+
workflow_dispatch:
17+
18+
jobs:
19+
mysql_8:
20+
runs-on: ubuntu-24.04
21+
22+
services:
23+
mysql:
24+
image: mysql:8
25+
env:
26+
MYSQL_ALLOW_EMPTY_PASSWORD: yes
27+
MYSQL_DATABASE: laravel
28+
ports:
29+
- 3306:3306
30+
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
31+
32+
strategy:
33+
fail-fast: true
34+
35+
name: MySQL 8
36+
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v4
40+
41+
- name: Setup PHP
42+
uses: shivammathur/setup-php@v2
43+
with:
44+
php-version: 8.2
45+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, pdo_mysql, :php-psr
46+
tools: composer:v2
47+
coverage: none
48+
49+
- name: Set Framework version
50+
run: composer config version "11.x-dev"
51+
52+
- name: Install dependencies
53+
uses: nick-fields/retry@v3
54+
with:
55+
timeout_minutes: 5
56+
max_attempts: 5
57+
command: composer update --prefer-stable --prefer-dist --no-interaction --no-progress
58+
59+
- name: Execute tests
60+
run: vendor/bin/phpunit
61+
env:
62+
DB_CONNECTION: mysql

.github/workflows/tests-for-postgres.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- ".github/workflows/tests-for-postgres.yml"
1010
- ".github/workflows/test-for-mariadb.yml"
1111
- ".github/workflows/tests-for-mysql.yml"
12+
- ".github/workflows/tests-for-mysql8.yml"
1213
- "phpunit.xml.dist"
1314
- "composer.json"
1415
- "composer.lock"

.github/workflows/tests-for-sql-server.yml

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
- ".github/workflows/tests-for-postgres.yml"
1010
- ".github/workflows/test-for-mariadb.yml"
1111
- ".github/workflows/tests-for-mysql.yml"
12+
- ".github/workflows/tests-for-mysql8.yml"
1213
- "phpunit.xml.dist"
1314
- "composer.json"
1415
- "composer.lock"

0 commit comments

Comments
 (0)