Skip to content

ci: add PHP linting with Laravel Pint #1

ci: add PHP linting with Laravel Pint

ci: add PHP linting with Laravel Pint #1

Workflow file for this run

name: lint
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
phpcs:
runs-on: ubuntu-latest
name: PHP_CodeSniffer
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
coverage: none
- name: Install dependencies
run: composer install --no-progress --prefer-dist
- name: Run PHPCS
run: vendor/bin/phpcs --standard=PSR12 includes/