fix: fixed php-cs-fixer version and applied coding style (#87) #145
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 | |
tests: | |
name: Tests | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
version: [ '7.4', '8.0', '8.1' ] | |
flags: [ '', '--prefer-lowest' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@master | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.version }} | |
coverage: xdebug2 | |
- run: composer update --prefer-dist --no-interaction ${{ matrix.flags }} | |
- run: bin/atoum |