Merge pull request #3742 from gambitph/test/phpunit-runtime #2
This file contains hidden or 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: 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 |