Skip to content

Merge pull request #1 from ebln/bump-php #22

Merge pull request #1 from ebln/bump-php

Merge pull request #1 from ebln/bump-php #22

Workflow file for this run

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