Skip to content

Merge pull request #42 from giggsey/upstream-8.13.26 #99

Merge pull request #42 from giggsey/upstream-8.13.26

Merge pull request #42 from giggsey/upstream-8.13.26 #99

Workflow file for this run

name: "Tests"
on:
push:
branches:
- 'main'
paths-ignore:
- 'docs/**'
pull_request:
paths-ignore:
- 'docs/**'
jobs:
tests:
name: PHP ${{ matrix.php-version }} - ${{ matrix.composer }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version: ['8.0', 8.1, 8.2, 8.3]
composer: [highest, lowest]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
extensions: dom
coverage: xdebug
tools: composer:v2
- uses: "ramsey/composer-install@v2"
with:
dependency-versions: "${{ matrix.composer }}"
- name: composer validate
run: composer validate --strict
- name: Run unit tests
run: "./vendor/bin/phpunit --colors=always --coverage-clover build/logs/clover.xml --coverage-text"
- name: Publish coverage report to Codecov
uses: "codecov/codecov-action@v3"