Skip to content

Cleanup, add PHP file support #169

Cleanup, add PHP file support

Cleanup, add PHP file support #169

Workflow file for this run

name: Lint
on:
push:
branches:
- master
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: latest
coverage: none
tools: composer, cs2pr
- name: Get Composer home directory
id: composer-home
run: |
echo "::set-output name=dir::$(composer config home)"
- name: Install PHP dependencies
uses: ramsey/composer-install@v3
- name: Lint PHP files
run: phpcs -q --report=checkstyle | cs2pr
- name: Analyze PHP files
run: composer run-script analyze
- name: Lint composer.json
run: composer normalize --dry-run