Skip to content

refactor(autoreview): Extract PHPUnit test analysis into a dedicated … #5683

refactor(autoreview): Extract PHPUnit test analysis into a dedicated …

refactor(autoreview): Extract PHPUnit test analysis into a dedicated … #5683

Workflow file for this run

name: Coding Standards
on:
pull_request:
push:
branches:
- main
- master
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions: {}
jobs:
coding-standards:
name: Coding Standards
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Setup PHP
uses: shivammathur/setup-php@7c071dfe9dc99bdf297fa79cb49ea005b9fcadbc # 2.37.1
with:
# Should use the lowest supported version to ensure the CS-Fixer does
# not get confused and apply a rule that would break on lower supported
# versions.
php-version: 8.3
- name: Configure PHP-CS-Fixer GitHub Actions cache
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ./var/cache/php-cs-fixer
key: "8.3-php-cs-fixer-${{ github.run_id }}"
restore-keys: "php-cs-fixer"
- name: Run PHP-CS-Fixer
run: make cs-check