Skip to content

Commit

Permalink
Update to support laravel 11 (#5)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
karl-d authored Nov 21, 2024
1 parent f600273 commit d03d30f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 46 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: wt-health/laravel-json-schema-request
files: ./coverage.clover
26 changes: 0 additions & 26 deletions .scrutinizer.yml

This file was deleted.

9 changes: 4 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
24 changes: 14 additions & 10 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,21 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.2/phpunit.xsd"
xsi:noNamespaceSchemaLocation="vendor/phpunit/phpunit/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
beStrictAboutCoversAnnotation="true"
shortenArraysForExportThreshold="10"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
beStrictAboutTodoAnnotatedTests="true"
verbose="true">
displayDetailsOnPhpunitDeprecations="true"
failOnPhpunitDeprecation="true"
failOnRisky="true"
failOnWarning="true">
<testsuites>
<testsuite name="default">
<directory suffix="Test.php">tests</directory>
<directory>tests</directory>
</testsuite>
</testsuites>

<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
<directory suffix=".php">src</directory>
</whitelist>
</filter>
<source ignoreIndirectDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>
</phpunit>

0 comments on commit d03d30f

Please sign in to comment.