@@ -19,16 +19,16 @@ jobs:
1919 - name : Setup PHP
2020 uses : shivammathur/setup-php@v2
2121 with :
22- php-version : 7.3
22+ php-version : 7.4
2323 extensions : dom, fileinfo, filter, gd, hash, intl, json, mbstring, pcre, pdo, zlib
24- tools : prestissimo, flex
24+ tools : flex
2525 coverage : pcov
2626
2727 - name : Checkout
2828 uses : actions/checkout@v1
2929
3030 - name : Install the dependencies
31- run : composer install --no-interaction --no-suggest
31+ run : composer install --no-interaction
3232
3333 - name : Generate the coverage report
3434 run : php -d pcov.enabled=1 vendor/bin/phpunit --testsuite=coverage --coverage-clover=clover.xml --colors=always
@@ -47,16 +47,16 @@ jobs:
4747 - name : Setup PHP
4848 uses : shivammathur/setup-php@v2
4949 with :
50- php-version : 7.3
50+ php-version : 7.4
5151 extensions : dom, fileinfo, filter, gd, hash, intl, json, mbstring, pcre, pdo, zlib
52- tools : prestissimo, flex
52+ tools : flex
5353 coverage : none
5454
5555 - name : Checkout
5656 uses : actions/checkout@v1
5757
5858 - name : Install the dependencies
59- run : composer install --no-interaction --no-suggest
59+ run : composer install --no-interaction
6060
6161 - name : Check the coding style
6262 run : |
8787 with :
8888 php-version : ${{ matrix.php }}
8989 extensions : dom, fileinfo, filter, gd, hash, intl, json, mbstring, pcre, pdo_mysql, zlib
90- tools : prestissimo, flex
90+ tools : flex
91+ coverage : none
92+
93+ - name : Initialize the database
94+ run : |
95+ sudo /etc/init.d/mysql start
96+ mysql -uroot -proot -e "CREATE database contao_test"
97+
98+ - name : Checkout
99+ uses : actions/checkout@v1
100+
101+ - name : Install the dependencies
102+ run : composer install --no-interaction
103+
104+ - name : Run the unit tests
105+ run : vendor/bin/phpunit --colors=always
106+
107+ - name : Run the functional tests
108+ run : vendor/bin/phpunit --testsuite=functional --colors=always
109+ env :
110+ DATABASE_URL : mysql://root:root@127.0.0.1:3306/contao_test
111+
112+ php8 :
113+ name : PHP 8.0
114+ runs-on : ubuntu-latest
115+ if : github.event_name != 'push'
116+ steps :
117+ - name : Setup PHP
118+ uses : shivammathur/setup-php@v2
119+ with :
120+ php-version : 8.0
121+ extensions : dom, fileinfo, filter, gd, hash, intl, json, mbstring, pcre, pdo_mysql, zlib
122+ tools : flex
91123 coverage : none
92124
93125 - name : Initialize the database
@@ -99,15 +131,15 @@ jobs:
99131 uses : actions/checkout@v1
100132
101133 - name : Install the dependencies
102- run : composer install --no-interaction --no-suggest
134+ run : composer install --ignore-platform-reqs --no-interaction
103135
104136 - name : Run the unit tests
105137 run : vendor/bin/phpunit --colors=always
106138
107139 - name : Run the functional tests
108140 run : vendor/bin/phpunit --testsuite=functional --colors=always
109141 env :
110- DATABASE_URL : mysql://root:root@localhost :3306/contao_test
142+ DATABASE_URL : mysql://root:root@127.0.0.1 :3306/contao_test
111143
112144 prefer-lowest :
113145 name : Prefer Lowest
@@ -119,7 +151,7 @@ jobs:
119151 with :
120152 php-version : 7.3
121153 extensions : dom, fileinfo, filter, gd, hash, intl, json, mbstring, pcre, pdo_mysql, zlib
122- tools : prestissimo, flex
154+ tools : flex
123155 coverage : none
124156
125157 - name : Initialize the database
@@ -131,15 +163,15 @@ jobs:
131163 uses : actions/checkout@v1
132164
133165 - name : Install the dependencies
134- run : composer update --prefer-lowest --prefer-stable --no-interaction --no-suggest
166+ run : composer update --prefer-lowest --prefer-stable --no-interaction
135167
136168 - name : Run the unit tests
137169 run : vendor/bin/phpunit --colors=always
138170
139171 - name : Run the functional tests
140172 run : vendor/bin/phpunit --testsuite=functional --colors=always
141173 env :
142- DATABASE_URL : mysql://root:root@localhost :3306/contao_test
174+ DATABASE_URL : mysql://root:root@127.0.0.1 :3306/contao_test
143175
144176 bundles :
145177 name : Bundles
@@ -149,9 +181,9 @@ jobs:
149181 - name : Setup PHP
150182 uses : shivammathur/setup-php@v2
151183 with :
152- php-version : 7.3
184+ php-version : 7.4
153185 extensions : dom, fileinfo, filter, gd, hash, intl, json, mbstring, pcre, pdo, zlib
154- tools : prestissimo, flex
186+ tools : flex
155187 coverage : none
156188
157189 - name : Checkout
@@ -174,7 +206,7 @@ jobs:
174206 }
175207 file_put_contents(__DIR__."/composer.json", json_encode($data, JSON_UNESCAPED_SLASHES));
176208 '
177- COMPOSER_ROOT_VERSION=dev-${{ env.GITHUB_SHA }} composer install --no-interaction --no-suggest
209+ COMPOSER_ROOT_VERSION=dev-${{ env.GITHUB_SHA }} composer install --no-interaction
178210 vendor/bin/phpunit --colors=always
179211 cd ..
180212 done
@@ -187,10 +219,10 @@ jobs:
187219 - name : Setup PHP
188220 uses : shivammathur/setup-php@v2
189221 with :
190- php-version : 7.3
222+ php-version : 7.4
191223 extensions : dom, fileinfo, filter, gd, hash, intl, json, mbstring, mysqli, pcre, pdo_mysql, zlib
192224 ini-values : memory_limit=1G
193- tools : prestissimo, flex
225+ tools : flex
194226 coverage : none
195227
196228 - name : Adjust the Git autocrlf setting
@@ -200,7 +232,7 @@ jobs:
200232 uses : actions/checkout@v1
201233
202234 - name : Install the dependencies
203- run : composer install --no-interaction --no-suggest --no- progress
235+ run : composer install --no-interaction --no-progress
204236
205237 - name : Run the unit tests
206238 run : vendor/bin/phpunit.bat --colors=always
@@ -213,9 +245,8 @@ jobs:
213245 - name : Setup PHP
214246 uses : shivammathur/setup-php@v2
215247 with :
216- php-version : 7.3
248+ php-version : 7.4
217249 extensions : json, zlib
218- tools : prestissimo
219250 coverage : none
220251
221252 - name : Checkout
@@ -224,7 +255,7 @@ jobs:
224255 - name : Install the dependencies
225256 run : |
226257 composer global require contao/monorepo-tools:dev-master
227- composer install --no-interaction --no-suggest
258+ composer install --no-interaction
228259
229260 - name : Validate the composer.json files
230261 run : $HOME/.composer/vendor/bin/monorepo-tools composer-json --validate --ansi
@@ -237,9 +268,8 @@ jobs:
237268 - name : Setup PHP
238269 uses : shivammathur/setup-php@v2
239270 with :
240- php-version : 7.3
271+ php-version : 7.4
241272 extensions : json, zlib
242- tools : prestissimo
243273 coverage : none
244274
245275 - name : Checkout
0 commit comments