2024-07-13 19:45:49 +02:00
|
|
|
name: PHP Code Sniffer
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "main" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "main" ]
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
PHPCS:
|
|
|
|
name: PHPCS Scanner
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
actions: read
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout Source Code
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Setup Environment
|
|
|
|
uses: php-actions/composer@v6
|
|
|
|
with:
|
2024-08-09 12:29:36 +02:00
|
|
|
command: install
|
2024-07-13 19:45:49 +02:00
|
|
|
php_version: "8.1"
|
|
|
|
|
2024-08-09 12:29:36 +02:00
|
|
|
- name: Run PHP_CodeSniffer
|
2024-07-13 19:45:49 +02:00
|
|
|
uses: php-actions/phpcs@v1
|
|
|
|
with:
|
2024-08-09 12:29:36 +02:00
|
|
|
path: bin/ public/ src/
|
2024-07-13 19:45:49 +02:00
|
|
|
php_version: "8.1"
|
|
|
|
standard: phpcs.xml.dist
|