Skip to content

Merge pull request #3742 from gambitph/test/phpunit-runtime #2

Merge pull request #3742 from gambitph/test/phpunit-runtime

Merge pull request #3742 from gambitph/test/phpunit-runtime #2

Workflow file for this run

name: PHP Unit
on:
push:
branches: [ master, develop ]
paths:
- '**.php'
- 'composer.json'
- 'phpunit.xml.dist'
- 'tests/phpunit/**'
- '.github/workflows/php-unit.yml'
pull_request:
branches: [ master, develop ]
paths:
- '**.php'
- 'composer.json'
- 'phpunit.xml.dist'
- 'tests/phpunit/**'
- '.github/workflows/php-unit.yml'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
phpunit:
name: PHPUnit PHP ${{ matrix.php_version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php_version: [ '7.4', '8.5' ]
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php_version }}
coverage: none
tools: composer:v2
- name: Install Composer dependencies
run: composer update --no-interaction --prefer-dist --no-progress
- name: Run PHPUnit
run: composer test