2024-01-24 09:55:12 +01: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
|
2024-01-24 09:58:26 +01:00
|
|
|
with:
|
|
|
|
command: update
|
2024-02-05 15:44:15 +01:00
|
|
|
php_version: "8.1"
|
2024-01-24 09:55:12 +01:00
|
|
|
|
|
|
|
- name: Run PHPCS
|
|
|
|
uses: php-actions/phpcs@v1
|
|
|
|
with:
|
2024-02-05 15:44:15 +01:00
|
|
|
php_version: "8.1"
|
2024-01-24 09:55:12 +01:00
|
|
|
path: src/
|
|
|
|
standard: phpcs.xml.dist
|