@@ -3,30 +3,115 @@ name: Tests
3
3
on : [ push, pull_request ]
4
4
5
5
jobs :
6
- build :
7
- runs-on : ubuntu-latest
6
+
7
+ sqlite :
8
+ runs-on : ubuntu-latest
9
+
10
+ strategy :
11
+ fail-fast : true
12
+ matrix :
13
+ php : [ "8.2", "8.3" ]
14
+ laravel : [ "10.0", "11.0" ]
15
+
16
+ name : PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, SQLite 3
8
17
9
- strategy :
10
- fail-fast : true
11
- matrix :
12
- php : [ "8.2", "8.3" ]
13
- laravel : [ "10.0", "11.0" ]
18
+ steps :
19
+ - name : Checkout code
20
+ uses : actions/checkout@v4
14
21
15
- name : PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}
22
+ - name : Setup PHP
23
+ uses : shivammathur/setup-php@v2
24
+ with :
25
+ php-version : ${{ matrix.php }}
26
+ extensions : dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, pdo_mysql, pdo_pgsql
27
+ coverage : xdebug
16
28
17
- steps :
18
- - name : Checkout code
19
- uses : actions/checkout@v4
29
+ - name : Install dependencies
30
+ run : composer require laravel/framework:^${{ matrix.laravel }}
20
31
21
- - name : Setup PHP
22
- uses : shivammathur/setup-php@v2
23
- with :
24
- php-version : ${{ matrix.php }}
25
- extensions : curl, mbstring, zip, pcntl, pdo, pdo_sqlite, iconv
26
- coverage : xdebug
27
-
28
- - name : Install dependencies
29
- run : composer require laravel/framework:^${{ matrix.laravel }}
30
-
31
- - name : Execute tests
32
- run : sudo vendor/bin/phpunit
32
+ - name : Execute tests
33
+ run : sudo vendor/bin/phpunit
34
+
35
+ # mysql:
36
+ # runs-on: ubuntu-latest
37
+ #
38
+ # strategy:
39
+ # fail-fast: true
40
+ # matrix:
41
+ # php: [ "8.2", "8.3" ]
42
+ # laravel: [ "10.0", "11.0" ]
43
+ # mysql: [ "5.7", "8" ]
44
+ #
45
+ # name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, PostgreSQL ${{ matrix.psql }}
46
+ #
47
+ # services:
48
+ # mysql:
49
+ # image: mysql:${{ matrix.mysql }}
50
+ # env:
51
+ # MYSQL_ROOT_PASSWORD: root
52
+ # MYSQL_DATABASE: default
53
+ # ports:
54
+ # - 3306:3306
55
+ # options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
56
+ #
57
+ # steps:
58
+ # - name: Checkout code
59
+ # uses: actions/checkout@v4
60
+ #
61
+ # - name: Setup PHP
62
+ # uses: shivammathur/setup-php@v2
63
+ # with:
64
+ # php-version: ${{ matrix.php }}
65
+ # extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, pdo_mysql, pdo_pgsql
66
+ # coverage: xdebug
67
+ #
68
+ # - name: Install dependencies
69
+ # run: composer require laravel/framework:^${{ matrix.laravel }}
70
+ #
71
+ # - name: Execute tests
72
+ # run: sudo vendor/bin/phpunit
73
+ # env:
74
+ # DB_CONNECTION: mysql
75
+ # MYSQL_HOST: 127.0.0.1
76
+ #
77
+ # postgres:
78
+ # runs-on: ubuntu-latest
79
+ #
80
+ # strategy:
81
+ # fail-fast: true
82
+ # matrix:
83
+ # php: [ "8.2", "8.3" ]
84
+ # laravel: [ "10.0", "11.0" ]
85
+ # psql: [ "12", "13", "14", "15", "16" ]
86
+ #
87
+ # name: PHP ${{ matrix.php }}, Laravel ${{ matrix.laravel }}, PostgreSQL ${{ matrix.psql }}
88
+ #
89
+ # services:
90
+ # postgres:
91
+ # image: postgres:${{ matrix.psql }}-alpine
92
+ # ports:
93
+ # - 5432:5432
94
+ # env:
95
+ # POSTGRES_DB: default
96
+ # POSTGRES_USER: root
97
+ # POSTGRES_PASSWORD: root
98
+ #
99
+ # steps:
100
+ # - name: Checkout code
101
+ # uses: actions/checkout@v4
102
+ #
103
+ # - name: Setup PHP
104
+ # uses: shivammathur/setup-php@v2
105
+ # with:
106
+ # php-version: ${{ matrix.php }}
107
+ # extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis, pdo_mysql, pdo_pgsql
108
+ # coverage: xdebug
109
+ #
110
+ # - name: Install dependencies
111
+ # run: composer require laravel/framework:^${{ matrix.laravel }}
112
+ #
113
+ # - name: Execute tests
114
+ # run: sudo vendor/bin/phpunit
115
+ # env:
116
+ # DB_CONNECTION: pgsql
117
+ # PGSQL_HOST: 127.0.0.1
0 commit comments