diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86623ff..28d681a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -35,6 +35,9 @@ jobs: - run: vendor/bin/phpstan if: ${{ failure() || success() }} + - run: vendor/bin/rector process --dry-run + if: ${{ failure() || success() }} + - run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover ./clover.xml --log-junit ./phpunit.report.xml if: ${{ failure() || success() }} diff --git a/.gitignore b/.gitignore index d97b838..193fd50 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ /vendor/* -.phpunit.result.cache +.phpunit.cache .idea .php_cs.cache composer.lock diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 797f2d1..3dd1d0b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,13 +1,13 @@ - - - - ./src - - + ./tests/ + + + ./src + + diff --git a/rector.php b/rector.php new file mode 100644 index 0000000..6f5f041 --- /dev/null +++ b/rector.php @@ -0,0 +1,14 @@ +withPaths([ + __DIR__ . '/src', + __DIR__ . '/tests', + ]) + ->withSets([ + __DIR__ . '/src/Rector/rules.php', + ]);