mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-24 18:31:29 +01:00
# Qual: disable PHPCS action (now performed by pre-commit) The php-cs analysis is now ensured by pre-commit which does analysis on changed files in PR's and full analysis in the main branches. It also provides better reports (PHPCS did not report all the issues seen in travis).
33 lines
833 B
Plaintext
33 lines
833 B
Plaintext
name: "PHPCS"
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
paths:
|
|
- "**.php"
|
|
- "phpcs.xml"
|
|
- ".github/workflows/phpcs.yml"
|
|
|
|
jobs:
|
|
phpcs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
# Get git sources
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 50 # important!
|
|
|
|
# we may use whatever way to install phpcs, just specify the path on the next step
|
|
# however, curl seems to be the fastest
|
|
- name: Install PHP_CodeSniffer
|
|
run: |
|
|
curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar
|
|
php phpcs.phar --version
|
|
|
|
- uses: thenabeel/action-phpcs@v8
|
|
with:
|
|
files: "**.php" # you may customize glob as needed
|
|
phpcs_path: php phpcs.phar
|
|
standard: dev/setup/codesniffer/ruleset.xml
|
|
fail_on_warnings: false
|