diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index efada67..9cd5098 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ jobs: tests: strategy: matrix: - phpversion: [ 8.0, 8.1, 8.2 ] + phpversion: [ 8.2, 8.3 ] timeout-minutes: 15 runs-on: ubuntu-latest steps: @@ -26,7 +26,9 @@ jobs: run: composer run ecs - name: PHPUnit run: ./vendor/bin/phpunit --coverage-clover=coverage.clover - - name: Upload Coverage report - run: vendor/bin/ocular code-coverage:upload --access-token="${SCRUTINIZER_ACCESS_TOKEN}" --format=php-clover ./coverage.clover - env: - SCRUTINIZER_ACCESS_TOKEN: ${{ secrets.SCRUTINIZER_ACCESS_TOKEN }} + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.6.0 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: wt-health/laravel-json-schema-request + files: ./coverage.clover diff --git a/.scrutinizer.yml b/.scrutinizer.yml deleted file mode 100644 index 2cb143d..0000000 --- a/.scrutinizer.yml +++ /dev/null @@ -1,26 +0,0 @@ -checks: - php: true - -build: - environment: - php: - version: 8.0 - nodes: - analysis: - cache: - directories: - - ~/.composer - tests: - override: - - php-scrutinizer-run - -build_failure_conditions: - - 'elements.rating(<= B).new.exists' - -filter: - excluded_paths: - - tests/ - -tools: - external_code_coverage: - timeout: 300 # 5 minutes diff --git a/composer.json b/composer.json index ab05383..24c0a10 100644 --- a/composer.json +++ b/composer.json @@ -19,15 +19,14 @@ } ], "require-dev": { - "orchestra/testbench": "^v7.25.0", - "phpunit/phpunit": "^9.2", - "scrutinizer/ocular": "^1.9", + "orchestra/testbench": "^v9.6.1", + "phpunit/phpunit": "^11.4.0", "webtoolshealth/php-coding-standard": "^1.0" }, "require": { "justinrainbow/json-schema": "^5.2", - "php": "^8.0|^8.1|^8.2", - "illuminate/support": "^8.0|^9.0|^10.0" + "php": "^8.2|^8.3", + "illuminate/support": "^10.0|^11.0" }, "config": { "sort-packages": true diff --git a/phpunit.xml b/phpunit.xml index 21c7a86..da2563d 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,21 +1,25 @@ + displayDetailsOnPhpunitDeprecations="true" + failOnPhpunitDeprecation="true" + failOnRisky="true" + failOnWarning="true"> - tests + tests - - - src - - + + + src + +