Bump php support to 8.4 (starting from 7.4) #20
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: CI Pipeline | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ ubuntu-22.04 ] | |
php: [ '7.4','8.0'] | |
name: Build and test on ${{ matrix.php }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Force PHP ${{ matrix.php }} | |
uses: nanasess/setup-php@master | |
with: | |
php-version: ${{ matrix.php }} | |
- name: Validate composer.json and composer.lock | |
run: composer validate | |
- name: Require php-cs-fixer | |
run: | | |
mkdir --parents ./tools/php-cs-fixer | |
composer require --working-dir=tools/php-cs-fixer friendsofphp/php-cs-fixer "friendsofphp/php-cs-fixer:3.0.0" --prefer-dist --no-progress | |
- name: Install dependencies | |
run: composer install --prefer-dist --no-progress | |
- name: phpstan | |
run: | | |
./vendor/bin/phpstan --no-interaction --no-ansi analyse | |
- name: php-cs-fixer | |
run: | | |
./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix -v --config=.php-cs-fixer.dist.php --using-cache=no --dry-run |