Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
1,146 additions
and
144 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Mutations | ||
on: push | ||
jobs: | ||
infection: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
tools: composer:v2 | ||
coverage: pcov | ||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- uses: php-actions/composer@v6 | ||
with: | ||
args: --prefer-dist | ||
php_version: '8.2' | ||
|
||
- name: Infection | ||
run: | | ||
wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar | ||
wget -q https://github.com/infection/infection/releases/download/0.26.18/infection.phar.asc | ||
chmod +x infection.phar | ||
./infection.phar | ||
- name: Store infection log | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: infection.log |
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
2 changes: 1 addition & 1 deletion
2
.github/workflows/phpstan5.yaml → .github/workflows/phpstan-5.yaml
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
2 changes: 1 addition & 1 deletion
2
.github/workflows/phpstan6.yaml → .github/workflows/phpstan-6.yaml
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
2 changes: 1 addition & 1 deletion
2
.github/workflows/phpstan7.yaml → .github/workflows/phpstan-7.yaml
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
2 changes: 1 addition & 1 deletion
2
.github/workflows/phpstan8.yaml → .github/workflows/phpstan-8.yaml
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: PHPUnit | ||
on: push | ||
jobs: | ||
phpunit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
tools: composer:v2 | ||
coverage: pcov | ||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- uses: php-actions/composer@v6 | ||
with: | ||
args: --prefer-dist | ||
php_version: '8.2' | ||
|
||
- name: Run tests & generate Coverage | ||
run: bin/phpunit functional --coverage-html var/coverage | ||
|
||
- name: Store coverage files | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: var/coverage |
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,12 +1,40 @@ | ||
name: Quality | ||
name: Quality (PHPStan level 4) | ||
on: push | ||
jobs: | ||
cs-fixer: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
- name: Cs-Fixer | ||
run: | | ||
wget -q https://cs.symfony.com/download/php-cs-fixer-v3.phar -O php-cs-fixer | ||
chmod a+x php-cs-fixer | ||
PHP_CS_FIXER_IGNORE_ENV=true ./php-cs-fixer fix src --dry-run | ||
phpstan: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/cache@v3 | ||
with: | ||
path: '**/vendor' | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: "Set COMPOSER_ROOT_VERSION environment variable" | ||
uses: "ergebnis/composer-root-version-action@main" | ||
with: | ||
branch: "main" | ||
- uses: php-actions/composer@v6 | ||
with: | ||
args: '--prefer-dist' | ||
php_version: '8.2' | ||
- name: PHPStan | ||
uses: php-actions/phpstan@v3 | ||
with: | ||
path: src/ | ||
level: 4 | ||
php_version: '8.2' |
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
Oops, something went wrong.