Update workflows #154
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "PHPUnit tests" | |
on: | |
pull_request: | |
push: | |
jobs: | |
phpunit: | |
name: "PHPUnit tests" | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
dependencies: | |
- "lowest" | |
- "highest" | |
- "locked" | |
minimum-stability: | |
- "stable" | |
php-version: | |
- "8.1" | |
- "8.2" | |
- "8.3" | |
operating-system: | |
- "ubuntu-latest" | |
include: | |
- dependencies: "highest" | |
minimum-stability: "dev" | |
php-version: "8.1" | |
operating-system: "ubuntu-latest" | |
- dependencies: "highest" | |
minimum-stability: "dev" | |
php-version: "8.2" | |
operating-system: "ubuntu-latest" | |
steps: | |
- name: "Checkout" | |
uses: "actions/checkout@v4" | |
- name: "Install PHP" | |
uses: "shivammathur/setup-php@v2" | |
with: | |
coverage: "none" | |
php-version: "${{ matrix.php-version }}" | |
ini-values: memory_limit=-1 | |
tools: composer:v2, cs2pr | |
- name: "Enable development dependencies" | |
if: "${{ matrix.minimum-stability == 'dev' }}" | |
run: "composer config --no-interaction -- minimum-stability dev" | |
- name: "Install dependencies" | |
uses: "ramsey/composer-install@v3" | |
with: | |
dependency-versions: "${{ matrix.dependencies }}" | |
- name: "Tests" | |
run: "make phpunit" |