-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #350 from ker0x/bugfix/tests
Fix tests
- Loading branch information
Showing
19 changed files
with
911 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,109 @@ | ||
name: CI | ||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
phpstan: | ||
name: PHPStan | ||
runs-on: ubuntu-latest | ||
env: | ||
php-version: 8.2 | ||
steps: | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ env.php-version }} | ||
tools: flex | ||
phpstan: | ||
name: PHPStan | ||
runs-on: ubuntu-latest | ||
env: | ||
php-version: 8.2 | ||
steps: | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ env.php-version }} | ||
tools: flex | ||
|
||
- name: "Checkout code" | ||
uses: actions/checkout@v4 | ||
- name: "Checkout code" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Install Composer dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--optimize-autoloader" | ||
- name: "Install Composer dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--optimize-autoloader" | ||
|
||
- name: "Run PHPStan" | ||
run: | | ||
vendor/bin/simple-phpunit --version | ||
vendor/bin/phpstan analyse --no-progress | ||
- name: "Run PHPStan" | ||
run: | | ||
vendor/bin/simple-phpunit --version | ||
vendor/bin/phpstan analyse --no-progress | ||
php-cs-fixer: | ||
name: PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
env: | ||
php-version: 8.2 | ||
steps: | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ env.php-version }} | ||
tools: flex, cs2pr | ||
php-cs-fixer: | ||
name: PHP-CS-Fixer | ||
runs-on: ubuntu-latest | ||
env: | ||
php-version: 8.2 | ||
steps: | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ env.php-version }} | ||
tools: flex, cs2pr | ||
|
||
- name: "Checkout code" | ||
uses: actions/checkout@v4 | ||
- name: "Checkout code" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Install Composer dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--optimize-autoloader" | ||
- name: "Install Composer dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--optimize-autoloader" | ||
|
||
- name: "Run PHP-CS-Fixer" | ||
run: vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no --format=checkstyle | cs2pr | ||
- name: "Run PHP-CS-Fixer" | ||
run: vendor/bin/php-cs-fixer fix -v --dry-run --using-cache=no --format=checkstyle | cs2pr | ||
|
||
phpunit: | ||
name: PHPUnit (PHP ${{ matrix.php }}) (Symfony ${{ matrix.sf_version }}) (${{ matrix.dependencies }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 10 | ||
fail-fast: true | ||
matrix: | ||
dependencies: ['highest'] | ||
php: ['7.4', '8.0', '8.1', '8.2'] | ||
include: | ||
- php: '7.4' | ||
sf_version: '4.4.*' | ||
dependencies: 'lowest' | ||
- php: '7.4' | ||
sf_version: '4.4.*' | ||
- php: '7.4' | ||
sf_version: '5.4.*' | ||
dependencies: 'lowest' | ||
- php: '8.0' | ||
sf_version: '5.4.*' | ||
- php: '8.1' | ||
sf_version: '5.4.*' | ||
- php: '8.0' | ||
sf_version: '6.0.*' | ||
- php: '8.1' | ||
sf_version: '6.0.*' | ||
- php: '8.2' | ||
sf_version: '6.2.*' | ||
- php: '8.2' | ||
sf_version: '6.4.*' | ||
- php: '8.2' | ||
sf_version: '7.0.*' | ||
steps: | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: flex | ||
coverage: none | ||
phpunit: | ||
name: PHPUnit (PHP ${{ matrix.php }}) (Symfony ${{ matrix.sf_version }}) (${{ matrix.dependencies }}) | ||
runs-on: ubuntu-latest | ||
strategy: | ||
max-parallel: 10 | ||
fail-fast: false | ||
matrix: | ||
dependencies: ['highest'] | ||
php: [ '7.4', '8.0', '8.1', '8.2' ] | ||
sf_version: [ '4.4.*', '5.4.*', '6.4.*', '7.0.*' ] | ||
include: | ||
- php: '7.4' | ||
sf_version: '4.4.*' | ||
dependencies: 'lowest' | ||
- php: '7.4' | ||
sf_version: '5.4.*' | ||
dependencies: 'lowest' | ||
exclude: | ||
- php: '7.4' | ||
sf_version: '4.4.*' | ||
- php: '7.4' | ||
sf_version: '6.4.*' | ||
- php: '8.0' | ||
sf_version: '6.4.*' | ||
- php: '7.4' | ||
sf_version: '7.0.*' | ||
- php: '8.0' | ||
sf_version: '7.0.*' | ||
- php: '8.1' | ||
sf_version: '7.0.*' | ||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@v4 | ||
|
||
- name: "Checkout code" | ||
uses: actions/checkout@v4 | ||
- name: "Setup PHP" | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: flex | ||
coverage: none | ||
|
||
- name: "Install Composer dependencies" | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--optimize-autoloader" | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
- name: "Install Composer dependencies" | ||
env: | ||
SYMFONY_REQUIRE: ${{ matrix.sf_version }} | ||
uses: "ramsey/composer-install@v2" | ||
with: | ||
composer-options: "--optimize-autoloader" | ||
dependency-versions: "${{ matrix.dependencies }}" | ||
|
||
- name: "Run tests" | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=3&max[indirect]=1' | ||
run: ./vendor/bin/simple-phpunit -v | ||
- name: "Run tests" | ||
env: | ||
SYMFONY_DEPRECATIONS_HELPER: 'baselineFile=./tests/allowed.json' | ||
run: ./vendor/bin/simple-phpunit -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<phpunit backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
bootstrap="tests/bootstrap.php" | ||
<phpunit | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
backupGlobals="false" | ||
backupStaticAttributes="false" | ||
colors="true" | ||
convertErrorsToExceptions="true" | ||
convertNoticesToExceptions="true" | ||
convertWarningsToExceptions="true" | ||
processIsolation="false" | ||
stopOnFailure="false" | ||
bootstrap="tests/bootstrap.php" | ||
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.6/phpunit.xsd" | ||
> | ||
<coverage> | ||
<include> | ||
<directory>src</directory> | ||
</include> | ||
</coverage> | ||
|
||
<testsuites> | ||
<testsuite name="main"> | ||
<directory>./tests</directory> | ||
</testsuite> | ||
</testsuites> | ||
|
||
<filter> | ||
<whitelist> | ||
<directory>src</directory> | ||
</whitelist> | ||
</filter> | ||
|
||
<listeners> | ||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener" /> | ||
<listener class="Symfony\Bridge\PhpUnit\SymfonyTestsListener"/> | ||
</listeners> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.