Skip to content

Commit 2f8c930

Browse files
committed
wip
1 parent 88c10d3 commit 2f8c930

File tree

4 files changed

+20
-53
lines changed

4 files changed

+20
-53
lines changed

.github/workflows/run-tests.yml

Lines changed: 5 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,10 @@ jobs:
1212
fail-fast: true
1313
matrix:
1414
os: [ubuntu-latest, windows-latest]
15-
php: [8.2, 8.0, 7.4, 7.3]
16-
laravel: ['8.*', '9.*', '10.*', '11.*']
17-
dependency-version: [prefer-lowest, prefer-stable]
18-
include:
19-
- laravel: 10.*
20-
testbench: 8.*
21-
- laravel: 9.*
22-
testbench: 7.*
23-
- laravel: 8.*
24-
testbench: ^6.23
25-
- laravel: 11.*
26-
testbench: 9.*
27-
exclude:
28-
- laravel: 10.*
29-
php: 8
30-
- laravel: 10.*
31-
php: 7.4
32-
- laravel: 10.*
33-
php: 7.3
34-
- laravel: 9.*
35-
php: 7.4
36-
- laravel: 9.*
37-
php: 7.3
38-
- laravel: 11.*
39-
php: 8.0
40-
- laravel: 11.*
41-
php: 7.4
42-
- laravel: 11.*
43-
php: 7.3
15+
php: [8.2]
16+
laravel: ['10.*', '11.*']
17+
dependency-version: [prefer-stable]
18+
4419

4520
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
4621

@@ -57,7 +32,7 @@ jobs:
5732

5833
- name: Install dependencies
5934
run: |
60-
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
35+
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" --no-interaction --no-update
6136
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
6237
6338
- name: Execute tests

.phpunit.cache/test-results

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"version":1,"defects":[],"times":{"Spatie\\RobotsMiddleware\\Test\\RobotsMiddlewareTest::it_always_adds_a_robots_header_tag":0.018,"Spatie\\RobotsMiddleware\\Test\\RobotsMiddlewareTest::it_sets_the_robots_header_to_all_when_it_should_index":0.001,"Spatie\\RobotsMiddleware\\Test\\RobotsMiddlewareTest::it_sets_the_robots_header_to_none_when_it_shouldnt_index":0.001,"Spatie\\RobotsMiddleware\\Test\\RobotsMiddlewareTest::it_doesnt_overwrite_previously_set_tags":0.003,"Spatie\\RobotsMiddleware\\Test\\RobotsMiddlewareTest::it_can_set_a_custom_tag_via_a_string":0.001}}

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
"minimum-stability": "dev",
2222
"prefer-stable": true,
2323
"require": {
24-
"php": "^7.2|^8.0",
25-
"illuminate/http": "^8.0|^9.0|^10|^11.0"
24+
"php": "^8.2",
25+
"illuminate/http": "^10|^11.0"
2626
},
2727
"require-dev": {
28-
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
28+
"orchestra/testbench": "^8.0|^9.0",
2929
"phpunit/phpunit": "^9.4|^10.5"
3030
},
3131
"autoload": {

phpunit.xml.dist

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<phpunit bootstrap="vendor/autoload.php"
3-
backupGlobals="false"
4-
backupStaticAttributes="false"
5-
colors="true"
6-
verbose="true"
7-
convertErrorsToExceptions="true"
8-
convertNoticesToExceptions="true"
9-
convertWarningsToExceptions="true"
10-
processIsolation="false"
11-
stopOnFailure="false">
12-
<testsuites>
13-
<testsuite name="Spatie Test Suite">
14-
<directory>tests</directory>
15-
</testsuite>
16-
</testsuites>
17-
<filter>
18-
<whitelist>
19-
<directory suffix=".php">src/</directory>
20-
</whitelist>
21-
</filter>
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">
3+
<testsuites>
4+
<testsuite name="Spatie Test Suite">
5+
<directory>tests</directory>
6+
</testsuite>
7+
</testsuites>
8+
<source>
9+
<include>
10+
<directory suffix=".php">src/</directory>
11+
</include>
12+
</source>
2213
</phpunit>

0 commit comments

Comments
 (0)