ci(actions): add lint action

This commit is contained in:
Alexander Minkin 2025-01-30 23:50:34 +03:00
parent 0ac5f43e7b
commit c4859816d7
Signed by untrusted user: WerySkok
GPG key ID: 88E9A2F3AFE44C30

28
.github/workflows/lint.yaml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Lint
on:
push:
pull_request:
jobs:
lint:
runs-on: ubuntu-20.04
permissions:
contents: read
steps:
- name: Code Checkout
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: "8.2"
extensions: gd, zip, intl, yaml, pdo_mysql, rdkafka, imagick
tools: composer:v2
coverage: none
- name: Install dependencies
run: composer install --no-interaction --no-progress --no-suggest --prefer-dist
- name: PHP CS Fixer
run: vendor/bin/php-cs-fixer fix --dry-run --diff