Skip to content

prevent unlink errors instead of attempting to suppress them #76

prevent unlink errors instead of attempting to suppress them

prevent unlink errors instead of attempting to suppress them #76

Workflow file for this run

name: Coding Standards
on:
pull_request:
push:
branches:
- main
- master
jobs:
coding-standards:
name: Coding Standards
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php-version:
- '8.2'
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-version }}
coverage: none
- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_ENV
- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ env.dir }}
key: composer-${{ runner.os }}-${{ matrix.php-version }}-${{ hashFiles('**/composer.json') }}
restore-keys: |
composer-${{ runner.os }}-${{ matrix.php-version }}-
composer-${{ runner.os }}-
- name: Install dependencies
run: |
composer install --prefer-dist --no-progress --no-suggest
- name: Run PHP-CS-Fixer
run: |
vendor/bin/php-cs-fixer fix --diff --dry-run --verbose