remove an annotation reader dependency #18
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: Tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
tests: | |
name: PHPUnit PHP ${{ matrix.php }} ${{ matrix.dependency }} (Symfony ${{ matrix.symfony }}) | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
php: | |
- '8.0' | |
- '8.1' | |
dependency: | |
- '' | |
symfony: | |
- '5.4.*' | |
- '6.1.*' | |
exclude: | |
- php: '8.0' | |
symfony: '6.1.*' | |
dependency: '' | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
extensions: pcov | |
tools: flex | |
- name: Configure Symfony | |
run: composer config extra.symfony.require "${{ matrix.symfony }}" | |
- name: Configure CS plugin | |
run: composer config --no-plugins allow-plugins.dealerdirect/phpcodesniffer-composer-installer "true" | |
- name: Get Composer Cache Directory | |
id: composer-cache | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | |
- name: Cache dependencies | |
uses: actions/cache@v2 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ matrix.php }}-composer- | |
- name: Update project dependencies | |
if: matrix.dependency == '' | |
run: composer update --no-progress --ansi --prefer-stable | |
- name: Validate composer | |
run: composer validate --strict --no-check-lock | |
- name: Run CS | |
run: ./vendor/bin/php-cs-fixer fix --config=./.php-cs-fixer.dist.php -v --dry-run | |
- name: Run tests | |
run: ./vendor/bin/phpunit -c phpunit.xml.dist --coverage-clover=coverage.xml |