Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ on:
jobs:
tests:
runs-on: ${{ matrix.os }}

strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
php: ['8.0', 8.1, 8.2, 8.3]
laravel: [9.*, 10.*, 11.*]
php: [8.2, 8.3, 8.4]
laravel: ['10.*', '11.*', '12.*']
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- laravel: 9.*
Expand All @@ -27,6 +28,10 @@ jobs:
php: '8.0'
- laravel: 11.*
php: 8.1
- laravel: 12.*
php: '8.0'
- laravel: 12.*
php: 8.1

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

Expand All @@ -46,5 +51,6 @@ jobs:
run: |
composer require "illuminate/console:${{ matrix.laravel }}" "illuminate/mail:${{ matrix.laravel }}" "illuminate/view:${{ matrix.laravel }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-progress

- name: Execute tests
run: vendor/bin/pest
12 changes: 6 additions & 6 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
],
"homepage": "https://github.com/beyondcode/helo-laravel",
"require": {
"php": "^8.0 || ^8.1 || ^8.2",
"illuminate/console": "^8.0 || ^9.0 || ^10.0 || ^11.0",
"illuminate/mail": "^8.0 || ^9.0 || ^10.0 || ^11.0",
"illuminate/view": "^8.0 || ^9.0 || ^10.0 || ^11.0"
"php": "^8.2",
"illuminate/console": "^10.0 || ^11.0 || ^12.0",
"illuminate/mail": "^10.0 || ^11.0 || ^12.0",
"illuminate/view": "^10.0 || ^11.0 || ^12.0"
},
"require-dev": {
"orchestra/testbench": "^7.0 || ^8.0 || ^9.0",
"pestphp/pest": "1.x-dev || 2.x-dev"
"orchestra/testbench": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0",
"pestphp/pest": "1.x-dev || 2.x-dev || ^3.7"
},
"minimum-stability": "dev",
"autoload": {
Expand Down
56 changes: 21 additions & 35 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
@@ -1,37 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
colors="true"
backupGlobals="false"
backupStaticProperties="false"
stopOnError="false"
stopOnFailure="false">
<testsuites>
<testsuite name="BeyondCode Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>

<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>

<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>

<coverage>
<report>
<html outputDirectory="build/html-coverage" />
<text outputFile="build/coverage.txt" />
<clover outputFile="build/clover.xml" />
</report>
</coverage>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/11.5/phpunit.xsd" bootstrap="vendor/autoload.php" cacheDirectory=".phpunit.cache" executionOrder="depends,defects" beStrictAboutCoverageMetadata="true" beStrictAboutOutputDuringTests="true" colors="true" backupGlobals="false" backupStaticProperties="false" stopOnError="false" stopOnFailure="false">
<testsuites>
<testsuite name="BeyondCode Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<source restrictNotices="true" restrictWarnings="true" ignoreIndirectDeprecations="true">
<include>
<directory>src</directory>
</include>
</source>
<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>
<coverage>
<report>
<html outputDirectory="build/html-coverage"/>
<text outputFile="build/coverage.txt"/>
<clover outputFile="build/clover.xml"/>
</report>
</coverage>
</phpunit>
37 changes: 37 additions & 0 deletions phpunit.xml.dist.bak
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd"
bootstrap="vendor/autoload.php"
cacheDirectory=".phpunit.cache"
executionOrder="depends,defects"
beStrictAboutCoverageMetadata="true"
beStrictAboutOutputDuringTests="true"
colors="true"
backupGlobals="false"
backupStaticProperties="false"
stopOnError="false"
stopOnFailure="false">
<testsuites>
<testsuite name="BeyondCode Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>

<source restrictDeprecations="true" restrictNotices="true" restrictWarnings="true">
<include>
<directory>src</directory>
</include>
</source>

<logging>
<junit outputFile="build/report.junit.xml"/>
</logging>

<coverage>
<report>
<html outputDirectory="build/html-coverage" />
<text outputFile="build/coverage.txt" />
<clover outputFile="build/clover.xml" />
</report>
</coverage>
</phpunit>