Skip to content

Update PHPCS and PHPUnit workflows #4763

Update PHPCS and PHPUnit workflows

Update PHPCS and PHPUnit workflows #4763

Workflow file for this run

name: PHPCS
permissions:
actions: read
checks: read
contents: read
deployments: none
issues: read
packages: none
pull-requests: read
repository-projects: none
security-events: none
statuses: none
on:
pull_request:
push:
branches: [master]
jobs:
phpcs:
name: PHPCS
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-latest]
php-version: ['7.2']
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
tools: composer:v2, cs2pr
- name: "Composer install"
run: |
composer install --dev --prefer-dist --no-progress --no-suggest
- name: PHPCS / PHP ${{ matrix.php-version }}
run: |
php -v
./vendor/bin/phpcs -q --report=checkstyle | cs2pr