mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-25 02:41:26 +01:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
31 lines
801 B
YAML
31 lines
801 B
YAML
name: "PHPCS"
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "**.php"
|
|
- "phpcs.xml"
|
|
- ".github/workflows/phpcs.yml"
|
|
|
|
jobs:
|
|
phpcs:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- 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
|