Add support for php 8.0 to 8.3, dropps support of php 7 #12
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: Tasks | |
on: [push, pull_request] | |
jobs: | |
lint-php: | |
name: "php: ${{ matrix.php }}" | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
php: [ '8.0', '8.1', '8.2', '8.3' ] | |
steps: | |
- name: Setup PHP with PECL extension | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: ${{ matrix.php }} | |
- uses: actions/checkout@v2 | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.composer/cache/files | |
key: ${{ runner.os }}-${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }} | |
restore-keys: | | |
${{ runner.os }}-${{ matrix.php }}-composer- | |
- run: composer install --no-interaction --no-progress | |
- run: ./vendor/bin/grumphp run --ansi |