36 lines
649 B
YAML
36 lines
649 B
YAML
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:
|
|
command: install
|
|
php_version: "8.1"
|
|
|
|
- name: Run PHP_CodeSniffer
|
|
uses: php-actions/phpcs@v1
|
|
with:
|
|
path: src/
|
|
php_version: "8.1"
|
|
standard: phpcs.xml.dist
|