Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Mar 11, 2024
1 parent 88c10d3 commit 2f8c930
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 53 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,10 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
php: [8.2, 8.0, 7.4, 7.3]
laravel: ['8.*', '9.*', '10.*', '11.*']
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: ^6.23
- laravel: 11.*
testbench: 9.*
exclude:
- laravel: 10.*
php: 8
- laravel: 10.*
php: 7.4
- laravel: 10.*
php: 7.3
- laravel: 9.*
php: 7.4
- laravel: 9.*
php: 7.3
- laravel: 11.*
php: 8.0
- laravel: 11.*
php: 7.4
- laravel: 11.*
php: 7.3
php: [8.2]
laravel: ['10.*', '11.*']
dependency-version: [prefer-stable]


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

Expand All @@ -57,7 +32,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" "nesbot/carbon:^2.63" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
Expand Down
1 change: 1 addition & 0 deletions .phpunit.cache/test-results
Original file line number Diff line number Diff line change
@@ -0,0 +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}}
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": "^7.2|^8.0",
"illuminate/http": "^8.0|^9.0|^10|^11.0"
"php": "^8.2",
"illuminate/http": "^10|^11.0"
},
"require-dev": {
"orchestra/testbench": "^6.23|^7.0|^8.0|^9.0",
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^9.4|^10.5"
},
"autoload": {
Expand Down
31 changes: 11 additions & 20 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php"
backupGlobals="false"
backupStaticAttributes="false"
colors="true"
verbose="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuites>
<testsuite name="Spatie Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory suffix=".php">src/</directory>
</whitelist>
</filter>
<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">
<testsuites>
<testsuite name="Spatie Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory suffix=".php">src/</directory>
</include>
</source>
</phpunit>

0 comments on commit 2f8c930

Please sign in to comment.