-
Notifications
You must be signed in to change notification settings - Fork 1
63 lines (53 loc) · 1.61 KB
/
tests-for-mysql.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: tests-for-mysql
on:
push:
paths:
- "**.php"
- ".github/workflows/tests-for-laravel-versions.yml"
- ".github/workflows/tests-for-sql-server.yml"
- ".github/workflows/tests-for-postgres.yml"
- ".github/workflows/test-for-mariadb.yml"
- ".github/workflows/tests-for-mysql.yml"
- ".github/workflows/tests-for-mysql8.yml"
- "phpunit.xml.dist"
- "composer.json"
- "composer.lock"
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 "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
env:
DB_CONNECTION: mysql
DB_COLLATION: utf8mb4_unicode_ci