Update composer.json #16
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: PHP Composer | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
symfony-versions: ['^4.4', '^5.0', '^6.0'] | |
php-versions: ['8.1', '8.0', '7.4'] | |
# Exclude combinations that are not installable. | |
exclude: | |
- symfony-versions: '^6.0' | |
php-versions: '7.4' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
uses: php-actions/composer@v6 | |
with: | |
php_version: ${{ matrix.php-versions }} | |
- name: Update Symfony | |
uses: php-actions/composer@v6 | |
with: | |
php_version: ${{ matrix.php-versions }} | |
command: require | |
args: symfony/symfony:${{ matrix.symfony-versions }} -W | |
- name: PHPUnit (script) | |
run: ./vendor/bin/phpunit | |
# - name: PHPUnit (php-actions) | |
# uses: php-actions/phpunit@v3 | |
# with: | |
# php_version: ${{ matrix.php-versions }} | |
# # TODO: https://github.com/php-actions/phpunit/issues/51 | |
# vendored_phpunit_path: vendor/bin/phpunit | |
# configuration: ./phpunit.xml |