Skip to content

NTO-180 merged upstream changes #5

NTO-180 merged upstream changes

NTO-180 merged upstream changes #5

Workflow file for this run

name: "Code Linting"
on:
push:
branches:
- master
pull_request:
jobs:
php-cs-fixer:
name: 'PHP-CS-Fixer'
runs-on: 'ubuntu-latest'
steps:
- uses: 'actions/checkout@v3'
- name: 'Setup PHP'
uses: 'shivammathur/setup-php@v2'
with:
php-version: '8.1'
tools: php-cs-fixer, cs2pr
- uses: 'actions/cache@v3'
with:
path: '.php-cs-fixer.cache'
key: '${{ github.repository }}-8.1-phpcsfixer-${{ github.ref_name }}'
restore-keys: |
${{ github.repository }}-8.1-phpcsfixer-main
${{ github.repository }}-8.1-phpcsfixer-
- name: 'Run PHP-CS-Fixer'
# Using cs2pr settings, see: https://github.com/shivammathur/setup-php#tools-with-checkstyle-support
run: 'php-cs-fixer fix --dry-run --format checkstyle | cs2pr'