19
19
- unassigned
20
20
21
21
env :
22
- php_extensions : ' apcu, bcmath, ctype, curl, dom, iconv, intl, json, mbstring, opcache, openssl, pdo, pdo_pgsql, pcntl, pcov, posix, redis, session, simplexml, sockets, tokenizer, xml, xmlwriter, zip'
22
+ php_extensions : ' apcu, bcmath, ctype, curl, dom, iconv, intl, json, mbstring, opcache, openssl, pdo, pdo_pgsql, pcntl, pcov, posix, redis, session, simplexml, sockets, tokenizer, xml, xmlwriter, zip, xdebug '
23
23
key : cache-v0.1
24
24
DB_USER : ' postgres'
25
- DB_NAME : ' testing '
25
+ DB_NAME : ' postgres '
26
26
DB_PASSWORD : ' postgres'
27
27
DB_HOST : ' 127.0.0.1'
28
28
@@ -33,11 +33,11 @@ jobs:
33
33
strategy :
34
34
matrix :
35
35
operating_system : [ubuntu-latest]
36
- php_versions : ['7.4 ']
36
+ php_versions : ['8.3 ']
37
37
fail-fast : false
38
38
env :
39
39
PHP_CS_FIXER_FUTURE_MODE : ' 0'
40
- name : ' Lint PHP'
40
+ name : ' Linter PHP'
41
41
steps :
42
42
- name : ' Checkout'
43
43
uses : actions/checkout@v2
@@ -75,48 +75,18 @@ jobs:
75
75
strategy :
76
76
fail-fast : false
77
77
matrix :
78
- coverage : [false ]
78
+ coverage : [true ]
79
79
experimental : [false]
80
80
operating_system : [ubuntu-latest]
81
- postgres : ['9.6 ']
82
- laravel : ['^6 .0']
83
- php_versions : ['7.4 ']
81
+ postgres : ['11', '12', '13', '14', '15 ']
82
+ laravel : ['^11 .0']
83
+ php_versions : ['8.3 ']
84
84
include :
85
85
- operating_system : ubuntu-latest
86
- postgres : ' 10'
87
- php_versions : ' 7.4'
88
- laravel : ' ^7.0'
89
- experimental : false
90
- coverage : true
91
- - operating_system : ubuntu-latest
92
- postgres : ' 11'
93
- php_versions : ' 7.4'
94
- laravel : ' ^8.0'
95
- experimental : false
96
- coverage : true
97
- - operating_system : ubuntu-latest
98
- postgres : ' 12'
99
- php_versions : ' 8.0'
100
- laravel : ' ^8.0'
101
- experimental : false
102
- coverage : true
103
- - operating_system : ubuntu-latest
104
- postgres : ' 13'
105
- php_versions : ' 8.0'
106
- laravel : ' ^9.0'
107
- experimental : false
108
- coverage : false
109
- - operating_system : ubuntu-latest
110
- postgres : ' 14'
111
- php_versions : ' 8.1'
112
- laravel : ' ^10.0'
113
- experimental : false
114
- coverage : false
115
- - operating_system : ubuntu-latest
116
- postgres : ' 15'
117
- php_versions : ' 8.2'
86
+ postgres : ' 16'
87
+ php_versions : ' 8.4'
118
88
laravel : ' ^11.0'
119
- experimental : false
89
+ experimental : true
120
90
coverage : false
121
91
runs-on : ' ${{ matrix.operating_system }}'
122
92
services :
@@ -130,7 +100,7 @@ jobs:
130
100
- 5432:5432
131
101
# needed because the postgres container does not provide a healthcheck
132
102
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
133
- name : ' Test / Laravel ${{ matrix.laravel }} / PHP ${{ matrix.php_versions }} / Postgres ${{ matrix.postgres }}'
103
+ name : ' Testing / Laravel ${{ matrix.laravel }} / PHP ${{ matrix.php_versions }} / Postgres ${{ matrix.postgres }}'
134
104
needs :
135
105
- lint
136
106
steps :
@@ -160,10 +130,11 @@ jobs:
160
130
with :
161
131
php-version : ${{ matrix.php_versions }}
162
132
extensions : ${{ env.php_extensions }}
163
- ini-values : ' pcov.directory=src, date.timezone=UTC, upload_max_filesize=20M, post_max_size=20M, memory_limit=512M, short_open_tag=Off'
164
- coverage : pcov
133
+ ini-values : ' pcov.directory=src, date.timezone=UTC, upload_max_filesize=20M, post_max_size=20M, memory_limit=512M, short_open_tag=Off, xdebug.mode="develop,coverage" '
134
+ coverage : xdebug
165
135
tools : ' phpunit'
166
136
- name : ' Install PHP dependencies with Composer'
137
+ continue-on-error : ${{ matrix.experimental }}
167
138
run : |
168
139
composer require "laravel/framework=${{ matrix.laravel }}" --no-update
169
140
COMPOSER_MEMORY_LIMIT=-1 composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader
@@ -192,6 +163,7 @@ jobs:
192
163
-e "s/\${DATABASE}/${{ env.DB_NAME }}/" \
193
164
-e "s/\${HOST}/${{ env.DB_HOST }}/" \
194
165
phpunit.xml.dist > phpunit.xml
166
+ ./vendor/bin/phpunit -c phpunit.xml --migrate-configuration
195
167
if [[ ${{ matrix.coverage }} == true ]]; then
196
168
./vendor/bin/phpunit --stderr --coverage-clover build/logs/clover.xml --coverage-text
197
169
else
0 commit comments