Skip to content

Initial commit

Initial commit #1

Workflow file for this run

name: "php_codesniffer"
on:
push:
paths:
- "**.php"
- "phpcs.xml"
- ".github/workflows/phpcs.yml"
pull_request:
paths:
- "**.php"
- "phpcs.xml"
- ".github/workflows/phpcs.yml"
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # important!
- name: Install PHP_CodeSniffer
run: |
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
php phpcs.phar --version
- uses: Novusvetus/[email protected]
with:
files: "**.php"
scan_all: true
phpcs_path: php phpcs.phar
standard: phpcs.xml