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
31 changes: 29 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,48 @@ permissions:

jobs:
tests:
name: PHP ${{ matrix.php }} · ${{ matrix.stack }}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
# PHPUnit 12, Pest 4, Laravel 12 and Symfony 7.4, the oldest stack the package supports.
- php: '8.3'
stack: PHPUnit 12 · Pest 4 · Laravel 12 · Symfony 7.4
install: >-
composer update --no-interaction --prefer-dist
--with phpunit/phpunit:^12.5
--with pestphp/pest:^4.7
--with pestphp/pest-plugin-type-coverage:^4.0
--with illuminate/testing:^12.0
--with symfony/css-selector:^7.4
--with symfony/dom-crawler:^7.4
--with symfony/framework-bundle:^7.4
--with symfony/http-foundation:^7.4
# The newest versions that run on PHP 8.4.
- php: '8.4'
stack: newest
install: composer update --no-interaction --prefer-dist
# The versions of composer.lock.
- php: '8.5'
stack: locked
install: composer install --no-interaction --prefer-dist

steps:
- name: Checkout
uses: actions/checkout@v6

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.5'
php-version: ${{ matrix.php }}
extensions: dom
coverage: none

- name: Install dependencies
run: composer install --no-interaction --prefer-dist
run: ${{ matrix.install }}

- name: Test
run: composer test
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,14 @@ The package has four parts:

## Requirements

- PHP 8.5
- PHPUnit 13
- Pest 5, optional, for the expectations
- PHP 8.3, 8.4 or 8.5
- PHPUnit 12.5 or 13
- Pest 4 or 5, optional, for the expectations
- Symfony DomCrawler and CssSelector 7.4 or 8.1

The CI tests three stacks: PHP 8.3 with PHPUnit 12, Pest 4, Laravel 12 and Symfony 7.4; PHP 8.4 with
the newest versions; PHP 8.5 with the versions of `composer.lock`.

## Installation

```sh
Expand Down
18 changes: 10 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,25 @@
"source": "https://github.com/sorge-it/phpunit-pest-html-assertions"
},
"require": {
"php": "^8.5",
"php": "^8.3",
"ext-dom": "*",
"phpunit/phpunit": "^13.2",
"phpunit/phpunit": "^12.5|^13.2",
"symfony/css-selector": "^7.4|^8.1",
"symfony/dom-crawler": "^7.4|^8.1"
"symfony/dom-crawler": "^7.4|^8.1",
"symfony/polyfill-php84": "^1.33",
"symfony/polyfill-php85": "^1.33"
},
"require-dev": {
"illuminate/testing": "^13.0",
"illuminate/testing": "^12.0|^13.0",
"laravel/pint": "^1.29",
"nyholm/psr7": "^1.8",
"pestphp/pest": "^5.0",
"pestphp/pest-plugin-type-coverage": "^5.0",
"pestphp/pest": "^4.7|^5.0",
"pestphp/pest-plugin-type-coverage": "^4.0|^5.0",
"phpstan/phpstan": "^2.2",
"psr/http-message": "^2.0",
"rector/rector": "^2.5",
"symfony/framework-bundle": "^8.1",
"symfony/http-foundation": "^8.1"
"symfony/framework-bundle": "^7.4|^8.1",
"symfony/http-foundation": "^7.4|^8.1"
},
"suggest": {
"pestphp/pest": "Adds the checks as expectations and the function html().",
Expand Down
Loading
Loading