Allow PHP7.4+ #84
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: build | |
on: | |
push: ~ | |
pull_request: ~ | |
schedule: | |
- cron: 5 8 * * 5 | |
jobs: | |
checks: | |
name: 'PHP ${{ matrix.php-versions }} with composer args: ${{ matrix.composer-args }}' | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
fail-fast: false | |
matrix: | |
operating-system: [ubuntu-latest] | |
php-versions: ['7.2', '7.3', '7.4'] | |
composer-args: ['--prefer-lowest --prefer-stable', ''] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Setup PHP, with composer and extensions | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php-versions }} | |
extensions: mbstring | |
coverage: none | |
tools: composer-require-checker, composer-unused | |
- name: Install Composer dependencies | |
run: composer update --no-progress --no-suggest --prefer-dist --no-interaction ${{ matrix.composer-args }} | |
- name: Validate composer | |
run: composer validate --strict | |
- name: Check composer normalized | |
run: composer normalize --dry-run | |
- name: Check style | |
run: composer check-style | |
- name: Static analysis | |
run: composer analyse | |
- name: Run phpspec | |
run: composer phpspec | |
- name: Run phpunit | |
run: composer phpunit | |
- name: Composer require checker | |
if: matrix.php-versions == '7.4' && matrix.composer-args == '' | |
run: composer-require-checker | |
- name: Composer unused checker | |
if: matrix.php-versions == '7.4' && matrix.composer-args == '' | |
run: composer-unused |