Skip to content

Commit

Permalink
dial in PHPCS config and streamline linting step in the CI.
Browse files Browse the repository at this point in the history
exclude the vendor dir.
in the CI, lint all configured dirs in one step.
  • Loading branch information
stopfstedt committed Feb 13, 2024
1 parent d7c4b57 commit 0a32f40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ jobs:
php-version: ${{ matrix.php-version }}
- name: install dependencies
run: composer install --no-interaction --prefer-dist
- name: lint src
run: bin/phpcs src
- name: lint tests
run: bin/phpcs tests
- name: lint PHP
run: bin/phpcs

tests:
name: PHPUnit Tests
Expand Down
1 change: 1 addition & 0 deletions phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@
<file>bin/</file>
<file>src/</file>
<file>tests/</file>
<exclude-pattern>vendor</exclude-pattern>
</ruleset>

0 comments on commit 0a32f40

Please sign in to comment.