mirror of
https://github.com/opencultureconsulting/php-basics.git
synced 2025-03-09 00:00:38 +01:00
Add PHPCS GitHub workflow
This commit is contained in:
parent
be3b5f1141
commit
a4eb7bc4ea
32
.github/workflows/phpcs.yml
vendored
Normal file
32
.github/workflows/phpcs.yml
vendored
Normal file
@ -0,0 +1,32 @@
|
||||
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
|
||||
|
||||
- name: Run PHPCS
|
||||
uses: php-actions/phpcs@v1
|
||||
with:
|
||||
php_version: "8.0"
|
||||
path: src/
|
||||
standard: phpcs.xml.dist
|
Loading…
x
Reference in New Issue
Block a user