Skip to content

Commit

Permalink
Update dependencies (#8)
Browse files Browse the repository at this point in the history
* Update dependencies

* Allow Laravel 10.x and Testbench 8.x

* Update workflow, run tests on PHP 8.1 and 8.2

* Use new PhpUnit configuration

* Fix StyleCI config

* Fix cs
  • Loading branch information
svenluijten committed Jul 25, 2023
1 parent 8f799c2 commit 2127a4e
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 18 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
php: [8.0]
dependency-version: [highest, lowest]
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
php: ["8.1", "8.2"]
dependency-version: ["highest", "lowest"]
steps:
- uses: actions/checkout@v3

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
}
],
"require": {
"php": "^8.0",
"phpunit/phpunit": "^9.0",
"laravel/framework": "^8.0"
"php": "^8.1",
"phpunit/phpunit": "^9.0 || ^10.0",
"laravel/framework": "^9.0 || ^10.0"
},
"require-dev": {
"orchestra/testbench": "^6.0"
"orchestra/testbench": "^7.0 || ^8.0"
},
"autoload": {
"psr-4": {
Expand Down
21 changes: 10 additions & 11 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd"
backupGlobals="false"
bootstrap="vendor/autoload.php"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
verbose="true"
cacheDirectory=".phpunit.cache"
backupStaticProperties="false"
>
<testsuites>
<testsuite name="Laravel View Assertions Test Suite">
<directory suffix=".php">./tests/</directory>
</testsuite>
</testsuites>
<testsuites>
<testsuite name="Laravel View Assertions Test Suite">
<directory suffix="Test.php">./tests/</directory>
</testsuite>
</testsuites>
</phpunit>

0 comments on commit 2127a4e

Please sign in to comment.