feat: only supported php & symfony versions #34
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: soap-client-bundle | |
on: | |
pull_request: ~ | |
push: | |
branches: | |
- main | |
jobs: | |
coding-style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '8.1' | |
- name: php-cs-fixer | |
run: | | |
composer install -n --prefer-dist | |
composer check-style | |
tests: | |
strategy: | |
matrix: | |
php: [ 8.1, 8.2, 8.3 ] | |
symfony: [ 5.4, 6.4, 7.0 ] | |
exclude: | |
- php: 8.1 | |
symfony: 7.0 | |
runs-on: ubuntu-latest | |
env: | |
SYMFONY_VERSION: ${{ matrix.symfony }}.* | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- name: PHPUnit | |
run: | | |
composer require --no-update symfony/config=$SYMFONY_VERSION symfony/http-kernel=$SYMFONY_VERSION symfony/dependency-injection=$SYMFONY_VERSION symfony/options-resolver=$SYMFONY_VERSION | |
composer require --no-update --dev symfony/framework-bundle=$SYMFONY_VERSION symfony/yaml=$SYMFONY_VERSION | |
composer update --prefer-dist --no-interaction --no-ansi --no-progress | |
php vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover | |
- name: Upload code coverage scrutinizer | |
if: ${{ matrix.php == '8.1' && matrix.symfony == '5.4' }} | |
run: | | |
wget https://scrutinizer-ci.com/ocular.phar | |
php ocular.phar code-coverage:upload --format=php-clover coverage.clover |