Skip to content

Merge pull request #3 from andrewmy/add-sf7 #47

Merge pull request #3 from andrewmy/add-sf7

Merge pull request #3 from andrewmy/add-sf7 #47

Workflow file for this run

name: CodeStyle
on:
pull_request:
push:
branches:
- master
tags:
- v*
jobs:
unit-tests:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
php-versions: ['7.3', '7.4', '8.0']
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: phpunit, composer
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-suggest --no-progress --prefer-dist
- name: PHPUnit
run: phpunit
phpcs:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
php-versions: ['7.2', '7.3', '7.4', '8.0']
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: cs2pr, phpcs, composer
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-suggest --no-progress --prefer-dist
- name: PHPCS
run: phpcs -p
phpstan:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest, macos-latest]
php-versions: ['7.2', '7.3', '7.4']
steps:
- uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
tools: cs2pr, phpstan, composer
- name: Install Dependencies
run: composer install --no-ansi --no-interaction --no-suggest --no-progress --prefer-dist
- name: PHPStan
run: phpstan analyse src --error-format=checkstyle | cs2pr