achille-press/.github/workflows/lint-php.yml
gribse 582e4491c0
Some checks failed
CSS Code Linting / Lint CSS (push) Has been cancelled
JS Code Linting / Lint JS (push) Has been cancelled
PHP Code Linting / Parallel lint (push) Has been cancelled
PHP Code Linting / PHPCS check (push) Has been cancelled
clause agent mode "make it look like papermod"
2025-07-26 16:24:01 +02:00

42 lines
No EOL
945 B
YAML
Executable file

name: PHP Code Linting
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
lint-php:
name: Parallel lint
runs-on: ubuntu-latest
steps:
- name: Checkout the git repository
uses: actions/checkout@v2
- name: PHP setup
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Install composer packages
run: composer install --no-progress
- name: Check for PHP errors
run: composer lint:php
phpcs_check:
name: PHPCS check
runs-on: ubuntu-latest
steps:
- name: Checkout the git repository
uses: actions/checkout@v2
- name: PHP setup
uses: shivammathur/setup-php@v2
with:
php-version: 7.4
- name: Install composer packages
run: composer install --no-progress
- name: Check coding standards using PHPCS
run: composer lint:wpcs