psr-15/.github/workflows/phpcs.yml

36 lines
638 B
YAML
Raw Permalink Normal View History

2024-03-31 18:36:06 +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:
command: update
php_version: "8.1"
- name: Run PHPCS
uses: php-actions/phpcs@v1
with:
path: src/
2024-09-07 18:52:38 +02:00
php_version: "8.1"
2024-03-31 18:36:06 +02:00
standard: phpcs.xml.dist