test php8 build

This commit is contained in:
Shish 2020-09-16 13:51:29 +01:00
parent 9ec8c2f807
commit 583cf6751a
3 changed files with 8 additions and 7 deletions

View file

@ -13,7 +13,7 @@ jobs:
max-parallel: 3 max-parallel: 3
fail-fast: false fail-fast: false
matrix: matrix:
php: ['7.3', '7.4'] php: ['7.3', '7.4', '8.0']
database: ['pgsql', 'mysql', 'sqlite'] database: ['pgsql', 'mysql', 'sqlite']
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -56,11 +56,11 @@ jobs:
run: composer validate run: composer validate
- name: Install PHP dependencies - name: Install PHP dependencies
run: composer install --prefer-dist --no-progress --no-suggest run: composer update && composer install --prefer-dist --no-progress --no-suggest
- name: Install shimmie - name: Install shimmie
run: php index.php run: php index.php
- name: Run test suite - name: Run test suite
run: | run: |
if [[ "${{ matrix.database }}" == "pgsql" ]]; then if [[ "${{ matrix.database }}" == "pgsql" ]]; then
@ -73,8 +73,9 @@ jobs:
export TEST_DSN="sqlite:data/shimmie.sqlite" export TEST_DSN="sqlite:data/shimmie.sqlite"
fi fi
vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=data/coverage.clover vendor/bin/phpunit --configuration tests/phpunit.xml --coverage-clover=data/coverage.clover
- name: Upload coverage - name: Upload coverage
if: matrix.php == '7.4'
run: | run: |
wget https://scrutinizer-ci.com/ocular.phar wget https://scrutinizer-ci.com/ocular.phar
php ocular.phar code-coverage:upload --format=php-clover data/coverage.clover php ocular.phar code-coverage:upload --format=php-clover data/coverage.clover

View file

@ -25,7 +25,7 @@
], ],
"require" : { "require" : {
"php" : "^7.3", "php" : "^7.3 | ^8.0",
"ext-pdo": "*", "ext-pdo": "*",
"ext-json": "*", "ext-json": "*",
"ext-fileinfo": "*", "ext-fileinfo": "*",

4
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "da65b5a34a244840672147b4e6c1bea0", "content-hash": "7bec754711e9dae28c4237a723ad824a",
"packages": [ "packages": [
{ {
"name": "bower-asset/jquery", "name": "bower-asset/jquery",
@ -2428,7 +2428,7 @@
"prefer-stable": false, "prefer-stable": false,
"prefer-lowest": false, "prefer-lowest": false,
"platform": { "platform": {
"php": "^7.3", "php": "^7.3 | ^8.0",
"ext-pdo": "*", "ext-pdo": "*",
"ext-json": "*", "ext-json": "*",
"ext-fileinfo": "*" "ext-fileinfo": "*"