Skip to content

Commit

Permalink
Add linter for sniffs
Browse files Browse the repository at this point in the history
  • Loading branch information
ernilambar committed Nov 14, 2024
1 parent d6551d0 commit 3e1d501
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/php-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,32 @@ jobs:

- name: PHPMD
run: composer phpmd

php-lint-sniffs:
name: PHP (Sniffs)
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4

- uses: shivammathur/setup-php@v2
with:
php-version: '8.0'

- name: Validate Composer configuration
working-directory: "phpcs-sniffs"
run: composer validate

- name: Install PHP dependencies
uses: ramsey/composer-install@57532f8be5bda426838819c5ee9afb8af389d51a
with:
composer-options: '--prefer-dist'
working-directory: "phpcs-sniffs"

- name: PHP Lint
working-directory: "phpcs-sniffs"
run: composer lint

- name: PHP Lint PHPCS
working-directory: "phpcs-sniffs"
run: composer check-cs

0 comments on commit 3e1d501

Please sign in to comment.