Skip to content

Commit 763275b

Browse files
committed
Update PHP and Laravel versions in test workflow and composer.json
1 parent 745ab6d commit 763275b

File tree

3 files changed

+14
-29
lines changed

3 files changed

+14
-29
lines changed

.github/workflows/run-tests.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,23 +12,9 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
os: [ubuntu-latest, windows-latest]
15-
php: [8.0, 8.1, 8.2]
16-
laravel: ['9.*', '10.*', '11.*']
15+
php: [8.2]
16+
laravel: ['10.*', '11.*']
1717
dependency-version: [prefer-lowest, prefer-stable]
18-
include:
19-
- laravel: 10.*
20-
testbench: 8.*
21-
- laravel: 9.*
22-
testbench: 7.*
23-
- laravel: 11.*
24-
testbench: 9.*
25-
exclude:
26-
- laravel: 10.*
27-
php: 8.0
28-
- laravel: 11.*
29-
php: 8.0
30-
- laravel: 11.*
31-
php: 8.1
3218

3319
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
3420

@@ -51,7 +37,7 @@ jobs:
5137

5238
- name: Install dependencies
5339
run: |
54-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
40+
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
5541
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
5642
5743
- name: Execute tests

composer.json

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717
],
1818
"require": {
1919
"ext-json": "*",
20-
"php": "^8.0",
20+
"php": "^8.2",
2121
"guzzlehttp/guzzle": "^7.0",
22-
"laravel/framework": "^9.0|^10.0|^11.0",
22+
"laravel/framework": "^10.0|^11.0",
2323
"spatie/laravel-blink": "^1.3",
24-
"spatie/regex": "^1.1|^3.1",
24+
"spatie/regex": "^3.1",
2525
"symfony/process": "^6.0|^7.0"
2626
},
2727
"require-dev": {
2828
"mockery/mockery": "^1.4",
29-
"orchestra/testbench": "^7.0|^8.0|^9.0",
30-
"pestphp/pest": "^1.22|^2.34",
31-
"phpunit/phpunit": "^9.3|^10.5"
29+
"orchestra/testbench": "^8.0|^9.0",
30+
"pestphp/pest": "^2.34"
3231
},
3332
"autoload": {
3433
"psr-4": {

phpunit.xml.dist

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" backupStaticAttributes="false" colors="true" verbose="true" convertErrorsToExceptions="true" convertNoticesToExceptions="true" convertWarningsToExceptions="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.3/phpunit.xsd">
3-
<coverage>
4-
<include>
5-
<directory suffix=".php">src/</directory>
6-
</include>
7-
</coverage>
2+
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="vendor/autoload.php" backupGlobals="false" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
83
<testsuites>
94
<testsuite name="Spatie Test Suite">
105
<directory>tests</directory>
116
</testsuite>
127
</testsuites>
8+
<source>
9+
<include>
10+
<directory suffix=".php">src/</directory>
11+
</include>
12+
</source>
1313
</phpunit>

0 commit comments

Comments
 (0)