diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 8fa9b4f5..18ebb7d6 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -32,5 +32,9 @@ jobs: with: dependency-versions: "${{ matrix.dependencies }}" composer-options: "${{ matrix.composer-options }}" - - name: Run tests - run: composer test + - uses: paambaati/codeclimate-action@v5.0.0 + env: + CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} + with: + coverageCommand: composer test + debug: true diff --git a/.gitignore b/.gitignore index e884cd37..243ffc0b 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,5 @@ tests/_support/_generated/* vendor # ignore the coverage folders +**/.phpunit.cache **/coverage diff --git a/composer.json b/composer.json index d35c7b61..dea9cabe 100644 --- a/composer.json +++ b/composer.json @@ -30,7 +30,7 @@ "mockery/mockery": "^1.4", "nesbot/carbon": "^2.43", "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.5" + "phpunit/phpunit": "^10.0" }, "autoload": { "psr-4": { @@ -44,10 +44,12 @@ }, "scripts": { "test": [ - "phpunit", + "phpunit" + ], + "lint": [ + "php-cs-fixer fix -v --dry-run", "phpstan analyse" ], - "lint": "php-cs-fixer fix -v --dry-run", "lint-fix": "php-cs-fixer fix -v" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index daa8b21a..1fff419b 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,9 +1,6 @@ - + - - src/ - @@ -18,4 +15,9 @@ + + + src/ + +