mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Merge pull request #985 from acelaya-forks/feature/php8-deps
Feature/php8 deps
This commit is contained in:
commit
b0e390ced1
41
.github/workflows/ci.yml
vendored
41
.github/workflows/ci.yml
vendored
@ -60,10 +60,7 @@ jobs:
|
|||||||
extensions: swoole-4.5.9
|
extensions: swoole-4.5.9
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
ini-values: pcov.directory=module
|
ini-values: pcov.directory=module
|
||||||
- if: ${{ matrix.php-version == '8.0' }}
|
- run: composer install --no-interaction --prefer-dist
|
||||||
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php
|
|
||||||
- if: ${{ matrix.php-version != '8.0' }}
|
|
||||||
run: composer install --no-interaction --prefer-dist
|
|
||||||
- run: composer test:unit:ci
|
- run: composer test:unit:ci
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: ${{ matrix.php-version == '7.4' }}
|
if: ${{ matrix.php-version == '7.4' }}
|
||||||
@ -89,10 +86,7 @@ jobs:
|
|||||||
extensions: swoole-4.5.9
|
extensions: swoole-4.5.9
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
ini-values: pcov.directory=module
|
ini-values: pcov.directory=module
|
||||||
- if: ${{ matrix.php-version == '8.0' }}
|
- run: composer install --no-interaction --prefer-dist
|
||||||
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php
|
|
||||||
- if: ${{ matrix.php-version != '8.0' }}
|
|
||||||
run: composer install --no-interaction --prefer-dist
|
|
||||||
- run: composer test:db:sqlite:ci
|
- run: composer test:db:sqlite:ci
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: ${{ matrix.php-version == '7.4' }}
|
if: ${{ matrix.php-version == '7.4' }}
|
||||||
@ -119,10 +113,7 @@ jobs:
|
|||||||
tools: composer
|
tools: composer
|
||||||
extensions: swoole-4.5.9
|
extensions: swoole-4.5.9
|
||||||
coverage: none
|
coverage: none
|
||||||
- if: ${{ matrix.php-version == '8.0' }}
|
- run: composer install --no-interaction --prefer-dist
|
||||||
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php
|
|
||||||
- if: ${{ matrix.php-version != '8.0' }}
|
|
||||||
run: composer install --no-interaction --prefer-dist
|
|
||||||
- run: composer test:db:mysql
|
- run: composer test:db:mysql
|
||||||
|
|
||||||
db-tests-maria:
|
db-tests-maria:
|
||||||
@ -142,10 +133,7 @@ jobs:
|
|||||||
tools: composer
|
tools: composer
|
||||||
extensions: swoole-4.5.9
|
extensions: swoole-4.5.9
|
||||||
coverage: none
|
coverage: none
|
||||||
- if: ${{ matrix.php-version == '8.0' }}
|
- run: composer install --no-interaction --prefer-dist
|
||||||
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php
|
|
||||||
- if: ${{ matrix.php-version != '8.0' }}
|
|
||||||
run: composer install --no-interaction --prefer-dist
|
|
||||||
- run: composer test:db:maria
|
- run: composer test:db:maria
|
||||||
|
|
||||||
db-tests-postgres:
|
db-tests-postgres:
|
||||||
@ -165,10 +153,7 @@ jobs:
|
|||||||
tools: composer
|
tools: composer
|
||||||
extensions: swoole-4.5.9
|
extensions: swoole-4.5.9
|
||||||
coverage: none
|
coverage: none
|
||||||
- if: ${{ matrix.php-version == '8.0' }}
|
- run: composer install --no-interaction --prefer-dist
|
||||||
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php
|
|
||||||
- if: ${{ matrix.php-version != '8.0' }}
|
|
||||||
run: composer install --no-interaction --prefer-dist
|
|
||||||
- run: composer test:db:postgres
|
- run: composer test:db:postgres
|
||||||
|
|
||||||
db-tests-ms:
|
db-tests-ms:
|
||||||
@ -190,17 +175,13 @@ jobs:
|
|||||||
tools: composer
|
tools: composer
|
||||||
extensions: swoole-4.5.9, pdo_sqlsrv-5.9.0beta2
|
extensions: swoole-4.5.9, pdo_sqlsrv-5.9.0beta2
|
||||||
coverage: none
|
coverage: none
|
||||||
- if: ${{ matrix.php-version == '8.0' }}
|
- run: composer install --no-interaction --prefer-dist
|
||||||
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php
|
|
||||||
- if: ${{ matrix.php-version != '8.0' }}
|
|
||||||
run: composer install --no-interaction --prefer-dist
|
|
||||||
- name: Create test database
|
- name: Create test database
|
||||||
run: docker-compose exec -T shlink_db_ms /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Passw0rd!' -Q "CREATE DATABASE shlink_test;"
|
run: docker-compose exec -T shlink_db_ms /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P 'Passw0rd!' -Q "CREATE DATABASE shlink_test;"
|
||||||
- run: composer test:db:ms
|
- run: composer test:db:ms
|
||||||
|
|
||||||
api-tests:
|
api-tests:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
continue-on-error: ${{ matrix.php-version == '8.0' }}
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
php-version: ['7.4', '8.0']
|
php-version: ['7.4', '8.0']
|
||||||
@ -217,10 +198,7 @@ jobs:
|
|||||||
extensions: swoole-4.5.9
|
extensions: swoole-4.5.9
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
ini-values: pcov.directory=module
|
ini-values: pcov.directory=module
|
||||||
- if: ${{ matrix.php-version == '8.0' }}
|
- run: composer install --no-interaction --prefer-dist
|
||||||
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php
|
|
||||||
- if: ${{ matrix.php-version != '8.0' }}
|
|
||||||
run: composer install --no-interaction --prefer-dist
|
|
||||||
- run: bin/test/run-api-tests.sh
|
- run: bin/test/run-api-tests.sh
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
if: ${{ matrix.php-version == '7.4' }}
|
if: ${{ matrix.php-version == '7.4' }}
|
||||||
@ -250,10 +228,7 @@ jobs:
|
|||||||
extensions: swoole-4.5.9
|
extensions: swoole-4.5.9
|
||||||
coverage: pcov
|
coverage: pcov
|
||||||
ini-values: pcov.directory=module
|
ini-values: pcov.directory=module
|
||||||
- if: ${{ matrix.php-version == '8.0' }}
|
- run: composer install --no-interaction --prefer-dist
|
||||||
run: composer install --no-interaction --prefer-dist --ignore-platform-req=php
|
|
||||||
- if: ${{ matrix.php-version != '8.0' }}
|
|
||||||
run: composer install --no-interaction --prefer-dist
|
|
||||||
- uses: actions/download-artifact@v2
|
- uses: actions/download-artifact@v2
|
||||||
with:
|
with:
|
||||||
path: build
|
path: build
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^7.4",
|
"php": "^7.4 || ^8.0",
|
||||||
"ext-json": "*",
|
"ext-json": "*",
|
||||||
"ext-pdo": "*",
|
"ext-pdo": "*",
|
||||||
"akrabat/ip-address-middleware": "^2.0",
|
"akrabat/ip-address-middleware": "^2.0",
|
||||||
@ -34,10 +34,10 @@
|
|||||||
"lcobucci/jwt": "^4.0",
|
"lcobucci/jwt": "^4.0",
|
||||||
"league/uri": "^6.2",
|
"league/uri": "^6.2",
|
||||||
"lstrojny/functional-php": "^1.15",
|
"lstrojny/functional-php": "^1.15",
|
||||||
"mezzio/mezzio": "^3.2",
|
"mezzio/mezzio": "^3.3",
|
||||||
"mezzio/mezzio-fastroute": "^3.1",
|
"mezzio/mezzio-fastroute": "^3.1",
|
||||||
"mezzio/mezzio-helpers": "^5.3",
|
"mezzio/mezzio-helpers": "^5.3",
|
||||||
"mezzio/mezzio-problem-details": "^1.1",
|
"mezzio/mezzio-problem-details": "^1.3",
|
||||||
"mezzio/mezzio-swoole": "^3.1",
|
"mezzio/mezzio-swoole": "^3.1",
|
||||||
"monolog/monolog": "^2.0",
|
"monolog/monolog": "^2.0",
|
||||||
"nikolaposa/monolog-factory": "^3.1",
|
"nikolaposa/monolog-factory": "^3.1",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<phpunit
|
<phpunit
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.4/phpunit.xsd"
|
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
||||||
bootstrap="./config/test/bootstrap_api_tests.php"
|
bootstrap="./config/test/bootstrap_api_tests.php"
|
||||||
colors="true"
|
colors="true"
|
||||||
>
|
>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<phpunit
|
<phpunit
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.4/phpunit.xsd"
|
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
||||||
bootstrap="./config/test/bootstrap_db_tests.php"
|
bootstrap="./config/test/bootstrap_db_tests.php"
|
||||||
colors="true"
|
colors="true"
|
||||||
>
|
>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<phpunit
|
<phpunit
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.4/phpunit.xsd"
|
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
|
||||||
bootstrap="./vendor/autoload.php"
|
bootstrap="./vendor/autoload.php"
|
||||||
colors="true"
|
colors="true"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user