Skip to content

Commit

Permalink
Release/1.4.1 (#12)
Browse files Browse the repository at this point in the history
* fix: Fixes collections lib version and test execution.
  • Loading branch information
gustavofreze authored Dec 10, 2024
1 parent 506a284 commit bef49b4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 17 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: CI

on:
push:
pull_request:

permissions:
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,19 @@
"squizlabs/php_codesniffer": "^3.11"
},
"scripts": {
"test": "phpunit --configuration phpunit.xml tests",
"phpcs": "phpcs --standard=PSR12 --extensions=php ./src",
"phpmd": "phpmd ./src text phpmd.xml --suffixes php --exclude --ignore-violations-on-exit",
"phpstan": "phpstan analyse -c phpstan.neon.dist --quiet --no-progress",
"test": "phpunit --log-junit=report/coverage/junit.xml --coverage-xml=report/coverage/coverage-xml --coverage-html=report/coverage/coverage-html tests",
"test-mutation": "infection --only-covered --logger-html=report/coverage/mutation-report.html --coverage=report/coverage --min-msi=100 --min-covered-msi=100 --threads=4",
"mutation-test": "infection --only-covered --threads=max --logger-html=report/coverage/mutation-report.html --coverage=report/coverage",
"review": [
"@phpcs",
"@phpmd",
"@phpstan"
],
"tests": [
"@test",
"@test-mutation"
"@mutation-test"
]
}
}
22 changes: 12 additions & 10 deletions infection.json.dist
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"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": 90,
"source": {
"directories": [
"src"
]
},
"logs": {
"text": "report/infection/logs/infection-text.log",
"summary": "report/infection/logs/infection-summary.log"
"phpUnit": {
"configDir": "",
"customPath": "./vendor/bin/phpunit"
},
"mutators": {
"@default": true,
Expand All @@ -20,8 +24,6 @@
"MethodCallRemoval": false,
"LessThanNegotiation": false
},
"phpUnit": {
"configDir": "",
"customPath": "./vendor/bin/phpunit"
}
}
"minCoveredMsi": 100,
"testFramework": "phpunit"
}
6 changes: 4 additions & 2 deletions phpunit.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
bootstrap="vendor/autoload.php"
failOnRisky="true"
failOnWarning="true"
executionOrder="random"
cacheDirectory=".phpunit.cache"
beStrictAboutOutputDuringTests="true">

Expand All @@ -25,14 +26,15 @@

<coverage>
<report>
<xml outputDirectory="report/coverage/coverage-xml"/>
<html outputDirectory="report/coverage/coverage-html"/>
<text outputFile="report/coverage.txt"/>
<html outputDirectory="report/html/"/>
<clover outputFile="report/coverage-clover.xml"/>
</report>
</coverage>

<logging>
<junit outputFile="report/execution-result.xml"/>
<junit outputFile="report/coverage/junit.xml"/>
</logging>

</phpunit>
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use PointsOfInterest\Domain\Models\PointOfInterest;
use PointsOfInterest\Domain\Models\PointsOfInterest;
use TinyBlocks\Collection\Internal\Operations\Transform\PreserveKeys;
use TinyBlocks\Collection\PreserveKeys;

final readonly class Response
{
Expand Down

0 comments on commit bef49b4

Please sign in to comment.