Skip to content

Commit

Permalink
Add github action for phpcs linting check
Browse files Browse the repository at this point in the history
  • Loading branch information
razvanphp committed Mar 2, 2024
1 parent 08939ef commit 82b8af3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Code Quality

on: [push, pull_request]

jobs:
phpcs:
runs-on: ubuntu-latest
name: PHP_CodeSniffer
steps:
- uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
tools: cs2pr, phpcs

- name: Run phpcs
run: phpcs --standard=Yii2 -q --report=checkstyle framework/ | cs2pr

0 comments on commit 82b8af3

Please sign in to comment.