-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves lib's separation of responsibilities and using. (#33)
- Loading branch information
1 parent
e4643e7
commit 037729e
Showing
57 changed files
with
1,965 additions
and
968 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
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,55 +1,49 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
PHP_VERSION: '8.3' | ||
|
||
jobs: | ||
auto-review: | ||
name: Auto review | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use PHP 8.2 | ||
- name: Configure PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
php-version: ${{ env.PHP_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: composer update --no-progress --optimize-autoloader | ||
|
||
- name: Run phpcs | ||
run: composer phpcs | ||
|
||
- name: Run phpmd | ||
run: composer phpmd | ||
- name: Run review | ||
run: composer review | ||
|
||
tests: | ||
name: Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Use PHP 8.2 | ||
- name: Use PHP ${{ env.PHP_VERSION }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.2' | ||
php-version: ${{ env.PHP_VERSION }} | ||
|
||
- name: Install dependencies | ||
run: composer update --no-progress --optimize-autoloader | ||
|
||
- name: Run unit tests | ||
env: | ||
XDEBUG_MODE: coverage | ||
run: composer test | ||
|
||
- name: Run mutation tests | ||
run: composer test-mutation | ||
- name: Run tests | ||
run: composer tests |
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
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,25 +1,23 @@ | ||
{ | ||
"timeout": 10, | ||
"testFramework": "phpunit", | ||
"logs": { | ||
"text": "report/infection/logs/infection-text.log", | ||
"summary": "report/infection/logs/infection-summary.log" | ||
}, | ||
"tmpDir": "report/infection/", | ||
"minMsi": 100, | ||
"timeout": 30, | ||
"source": { | ||
"directories": [ | ||
"src" | ||
] | ||
}, | ||
"logs": { | ||
"text": "report/infection/logs/infection-text.log", | ||
"summary": "report/infection/logs/infection-summary.log" | ||
}, | ||
"mutators": { | ||
"@default": true, | ||
"CastInt": false, | ||
"CastString": false, | ||
"MatchArmRemoval": false, | ||
"MethodCallRemoval": false | ||
}, | ||
"phpUnit": { | ||
"configDir": "", | ||
"customPath": "./vendor/bin/phpunit" | ||
} | ||
}, | ||
"mutators": { | ||
"@default": true | ||
}, | ||
"minCoveredMsi": 100, | ||
"testFramework": "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
Oops, something went wrong.