Skip to content

Merge pull request #6 from stefanbauer/patch-1 #352

Merge pull request #6 from stefanbauer/patch-1

Merge pull request #6 from stefanbauer/patch-1 #352

Workflow file for this run

name: run-tests
on:
push:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
php: [8.1, 8.0, 7.4]
dependency-version: [prefer-lowest, prefer-stable]
exclude:
- php: 8.1
dependency-version: prefer-lowest
name: P${{ matrix.php }} - ${{ matrix.dependency-version }}
steps:
- uses: actions/checkout@v2
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, libxml, mbstring, zip
tools: composer:v2
- uses: actions/cache@v2
with:
path: ~/.composer/cache/files
key: dependencies-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
restore-keys: |
dependencies-php-${{ matrix.php }}-composer-
dependencies-php-
- run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
- run: vendor/bin/phpunit