fix: updated phpstan baseline after rector change #141
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: Continuous Integration | |
on: [ push, pull_request ] | |
jobs: | |
linter: | |
name: Code style | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@master | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
- run: composer install --prefer-dist --no-interaction | |
- run: bin/php-cs-fixer fix --ansi --dry-run --using-cache=no --verbose | |
atoum-tests: | |
name: Atoum tests | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
version: [ 8.1, 8.2 ] | |
flags: [ '', '--prefer-lowest' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@master | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.version }} | |
coverage: xdebug2 | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- run: composer update --prefer-dist --no-interaction ${{ matrix.flags }} | |
- run: bin/atoum | |
phpstan: | |
name: PHPStan checks | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
version: [ 8.1, 8.2 ] | |
flags: | |
- '' | |
# TODO add --prefer-lowest once we're ready to handle it | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@master | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.version }} | |
coverage: xdebug2 | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- run: composer update --prefer-dist --no-interaction ${{ matrix.flags }} | |
- run: bin/phpstan | |
rector: | |
name: Rector checks | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@master | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
coverage: xdebug2 | |
- name: Get composer cache directory | |
id: composer-cache | |
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | |
- name: Cache dependencies | |
uses: actions/cache@v3 | |
with: | |
path: ${{ steps.composer-cache.outputs.dir }} | |
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | |
restore-keys: ${{ runner.os }}-composer- | |
- run: composer update --prefer-dist --no-interaction | |
- run: bin/rector --dry-run |