Added missing segments API calls (v11) #159
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- "master" | |
jobs: | |
phpstan: | |
name: PHPStan | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Setup PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
php-version: 8.2 | |
- name: "Install Dependencies with Composer" | |
uses: ramsey/composer-install@v2 | |
- name: "Run PHPStan" | |
run: | | |
vendor/bin/simple-phpunit --version | |
vendor/bin/phpstan analyse --error-format=github | |
php-cs-fixer: | |
name: PHP-CS-Fixer | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Setup PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
php-version: 8.1 | |
tools: cs2pr | |
- name: "Install Dependencies with Composer" | |
uses: ramsey/composer-install@v2 | |
- name: "Run PHP-CS-Fixer" | |
run: vendor/bin/php-cs-fixer fix --dry-run --format=checkstyle | cs2pr | |
phpunit: | |
name: PHPUnit | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
include: | |
- php-version: 7.4 | |
composer-flags: --prefer-stable --prefer-lowest | |
- php-version: 8.0 | |
composer-flags: --prefer-stable --prefer-lowest | |
- php-version: 8.1 | |
composer-flags: --prefer-stable --prefer-lowest | |
- php-version: 8.2 | |
composer-flags: --prefer-stable --prefer-lowest | |
- php-version: 7.4 | |
symfony-version: 5.4.* | |
- php-version: 8.0 | |
symfony-version: 6.0.* | |
- php-version: 8.1 | |
symfony-version: 6.0.* | |
- php-version: 8.2 | |
symfony-version: 6.0.* | |
- php-version: 8.2 | |
symfony-version: 6.1.* | |
- php-version: 8.2 | |
symfony-version: 6.2.* | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v2 | |
- name: "Setup PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: none | |
php-version: ${{ matrix.php-version }} | |
- name: "Install dependencies (fixed Symfony version) with composer" | |
if: matrix.symfony-version | |
run: | | |
composer remove --dev friendsofphp/php-cs-fixer | |
composer require symfony/options-resolver:${{ matrix.symfony-version }} --no-interaction --no-update | |
composer update --no-interaction --no-progress --no-suggest | |
- name: "Install dependencies (lowest dependencies) with composer" | |
if: matrix.composer-flags | |
run: | | |
composer update ${{ matrix.composer-flags }} --no-interaction --no-progress --no-suggest | |
- name: "Run tests with PHPUnit" | |
env: | |
SYMFONY_DEPRECATIONS_HELPER: 'max[self]=1' | |
run: vendor/bin/simple-phpunit | |
codecov: | |
name: "Code coverage" | |
runs-on: ubuntu-latest | |
steps: | |
- name: "Checkout" | |
uses: actions/checkout@v3 | |
- name: "Setup PHP" | |
uses: shivammathur/setup-php@v2 | |
with: | |
coverage: pcov | |
php-version: 8.2 | |
- name: "Install Dependencies with Composer" | |
uses: ramsey/composer-install@v2 | |
- name: "Run tests with PHPUnit and collect coverage" | |
run: php -dpcov.enabled=1 -dpcov.directory=. -dpcov.exclude="~vendor~" vendor/bin/simple-phpunit --colors=always --coverage-text -vvv |