mirror of
https://github.com/KnpLabs/KnpMarkdownBundle.git
synced 2024-05-28 03:23:30 +02:00
Fix PHPUnit
This commit is contained in:
parent
b22717883f
commit
643203872b
40
.github/workflows/phpunit.yaml
vendored
40
.github/workflows/phpunit.yaml
vendored
|
@ -6,7 +6,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
phpunit:
|
phpunit:
|
||||||
name: "phpunit - php ${{ matrix.php-version }}"
|
name: "PHPUnit - PHP ${{ matrix.php-version }}"
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
continue-on-error: false
|
continue-on-error: false
|
||||||
env:
|
env:
|
||||||
|
@ -20,7 +20,7 @@ jobs:
|
||||||
- "8.0"
|
- "8.0"
|
||||||
- "8.1"
|
- "8.1"
|
||||||
deps:
|
deps:
|
||||||
- "normal"
|
- "stable"
|
||||||
symfony-require:
|
symfony-require:
|
||||||
- ""
|
- ""
|
||||||
symfony-deprecations-helper:
|
symfony-deprecations-helper:
|
||||||
|
@ -34,27 +34,27 @@ jobs:
|
||||||
|
|
||||||
- symfony-require: "5.4.*"
|
- symfony-require: "5.4.*"
|
||||||
php-version: "7.4"
|
php-version: "7.4"
|
||||||
deps: "normal"
|
deps: "stable"
|
||||||
|
|
||||||
- symfony-require: "5.4.*"
|
- symfony-require: "5.4.*"
|
||||||
php-version: "8.0"
|
php-version: "8.0"
|
||||||
deps: "normal"
|
deps: "stable"
|
||||||
|
|
||||||
- symfony-require: "6.0.*"
|
- symfony-require: "6.0.*"
|
||||||
php-version: "8.0"
|
php-version: "8.0"
|
||||||
deps: "normal"
|
deps: "stable"
|
||||||
|
|
||||||
- symfony-require: "6.0.*"
|
- symfony-require: "6.0.*"
|
||||||
php-version: "8.1"
|
php-version: "8.1"
|
||||||
deps: "normal"
|
deps: "stable"
|
||||||
|
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Checkout code'
|
- name: "Checkout code"
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: 'Install PHP with extensions'
|
- name: "Install PHP with extensions"
|
||||||
uses: shivammathur/setup-php@v2
|
uses: shivammathur/setup-php@v2
|
||||||
with:
|
with:
|
||||||
coverage: none
|
coverage: none
|
||||||
|
@ -62,32 +62,30 @@ jobs:
|
||||||
extensions: mbstring, intl, pdo, pdo_sqlite, sqlite3
|
extensions: mbstring, intl, pdo, pdo_sqlite, sqlite3
|
||||||
ini-values: date.timezone=UTC
|
ini-values: date.timezone=UTC
|
||||||
|
|
||||||
- name: 'Install phpunit'
|
- name: "Install dependencies with Composer"
|
||||||
run: |
|
run: "composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable"
|
||||||
composer update --no-interaction --prefer-dist --optimize-autoloader --prefer-stable
|
|
||||||
vendor/bin/simple-phpunit install
|
|
||||||
|
|
||||||
- name: "Cache dependencies installed with composer"
|
- name: "Cache dependencies installed with Composer"
|
||||||
uses: "actions/cache@v2"
|
uses: "actions/cache@v2"
|
||||||
with:
|
with:
|
||||||
path: "~/.composer/cache"
|
path: "~/.composer/cache"
|
||||||
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
|
key: "php-${{ matrix.php-version }}-composer-locked-${{ hashFiles('composer.lock') }}"
|
||||||
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
|
restore-keys: "php-${{ matrix.php-version }}-composer-locked-"
|
||||||
|
|
||||||
- name: "Install stable dependencies with composer"
|
- name: "Install stable dependencies with Composer"
|
||||||
run: "composer update --no-interaction --prefer-dist --prefer-stable"
|
run: "composer update --no-interaction --prefer-dist --prefer-stable"
|
||||||
if: "${{ matrix.deps == 'normal' }}"
|
if: "${{ matrix.deps == 'stable' }}"
|
||||||
|
|
||||||
- name: "Install dev dependencies with composer"
|
- name: "Install dev dependencies with Composer"
|
||||||
run: "composer update --no-interaction --prefer-dist"
|
run: "composer update --no-interaction --prefer-dist"
|
||||||
if: "${{ matrix.deps == 'dev' }}"
|
if: "${{ matrix.deps == 'dev' }}"
|
||||||
|
|
||||||
- name: "Install lowest possible dependencies with composer"
|
- name: "Install lowest possible dependencies with Composer"
|
||||||
run: "composer update --no-interaction --prefer-dist --prefer-stable --prefer-lowest"
|
run: "composer update --no-interaction --prefer-dist --prefer-stable --prefer-lowest"
|
||||||
if: "${{ matrix.deps == 'low' }}"
|
if: "${{ matrix.deps == 'low' }}"
|
||||||
|
|
||||||
- name: "Run PHPUnit"
|
- name: "Install PHPUnit"
|
||||||
run: "vendor/bin/simple-phpunit install"
|
run: "./vendor/bin/simple-phpunit install"
|
||||||
|
|
||||||
- name: 'Run tests'
|
- name: "Run tests"
|
||||||
run: vendor/bin/phpunit -v
|
run: "./vendor/bin/simple-phpunit -v"
|
||||||
|
|
Loading…
Reference in a new issue