From d03d30facefed3e8197bafaa9f13a5bd65c81afa Mon Sep 17 00:00:00 2001 From: Karl Date: Thu, 21 Nov 2024 14:49:41 +1300 Subject: [PATCH] Update to support laravel 11 (#5) * Update to support laravel 11 Remove scruitinzer and replace with codecov Remove support for * Laravel 8 & 9 * PHP 8.0 & 8.1 * Update phpunit.xml --- .github/workflows/ci.yml | 12 +++++++----- .scrutinizer.yml | 26 -------------------------- composer.json | 9 ++++----- phpunit.xml | 24 ++++++++++++++---------- 4 files changed, 25 insertions(+), 46 deletions(-) delete mode 100644 .scrutinizer.yml 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 + +