Skip to content

Commit

Permalink
Update composer.json (#297)
Browse files Browse the repository at this point in the history
* Update composer.json

* up

* up warnings

* up

* up

* up

* up

* test coverage
  • Loading branch information
rap2hpoutre authored Mar 20, 2024
1 parent e77c7ad commit 49c52ae
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 24 deletions.
21 changes: 13 additions & 8 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,17 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2", "8.3"]
laravel: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0"]
php: ["7.2", "7.4", "8.0", "8.1", "8.2", "8.3"]
laravel: ["^6.0", "^7.0", "^8.0", "^9.0", "^10.0", "^11.0"]
exclude:
- php: "8.0"
laravel: "^10.0"
- php: "7.4"
laravel: "^10.0"
- php: "7.3"
laravel: "^10.0"
- php: "7.2"
laravel: "^10.0"
- php: "7.4"
laravel: "^9.0"
- php: "7.3"
laravel: "^9.0"
- php: "7.2"
laravel: "^9.0"
- php: "8.3"
Expand All @@ -44,7 +40,16 @@ jobs:
laravel: "^6.0"
- php: "8.1"
laravel: "^6.0"

- php: "7.2"
laravel: "^11.0"
- php: "7.4"
laravel: "^11.0"
- php: "8.0"
laravel: "^11.0"
- php: "8.1"
laravel: "^11.0"
- php: "8.2"
laravel: "^11.0"
name: "PHP${{ matrix.php }} - Laravel${{ matrix.laravel }}"

runs-on: "ubuntu-latest"
Expand All @@ -71,4 +76,4 @@ jobs:
run: "composer dump-autoload --optimize --strict-psr"

- name: "Execute unit tests"
run: "vendor/bin/phpunit --coverage-clover=coverage.xml --log-junit=test-report.xml --testdox"
run: "vendor/bin/phpunit"
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
],
"require": {
"php": "^7.2|^8.0",
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0"
"illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0"
},
"require-dev": {
"phpunit/phpunit": "^7||^8.4|^9.3.3",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0"
"phpunit/phpunit": "^7||^8.4|^9.3.3|^10.1",
"orchestra/testbench": "^4.0|^5.0|^6.0|^7.0|^8.0|^9.0"
},
"autoload": {
"classmap": [
Expand Down
14 changes: 1 addition & 13 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,20 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit colors="true" bootstrap="./vendor/autoload.php" convertNoticesToExceptions="true" convertWarningsToExceptions="true" stopOnError="false" stopOnFailure="false" stopOnIncomplete="false" stopOnSkipped="false">
<phpunit colors="true" bootstrap="./vendor/autoload.php">
<testsuites>
<testsuite name="all">
<directory suffix="Test.php">tests/</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<logging>
<log type="tap" target="build/report.tap"/>
<log type="junit" target="build/report.junit.xml"/>
<log type="coverage-html" target="build/coverage" charset="UTF-8" yui="true" highlight="true"/>
<log type="coverage-text" target="build/coverage.txt"/>
<log type="coverage-clover" target="build/logs/clover.xml"/>
</logging>
</phpunit>

0 comments on commit 49c52ae

Please sign in to comment.