Skip to content

Update PHPCS and PHPUnit workflows #4764

Update PHPCS and PHPUnit workflows

Update PHPCS and PHPUnit workflows #4764

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.os }}
strategy:
matrix:
os: [ubuntu-latest]
php-version: ['7.2']
steps:
- uses: actions/checkout@v4
- name: Install 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