Skip to content

Commit

Permalink
Use phpcs installed with composer instead of php-actions/phpcs
Browse files Browse the repository at this point in the history
It's unclear which version is actually being installed with this action.
Clearly the current installation is using an older version of phpcs that
did not take constant types into account, and is therefore erroneously
failing the build
  • Loading branch information
cookieguru committed Oct 27, 2024
1 parent ce4df67 commit 8882b66
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,13 @@ jobs:
with:
fetch-depth: 0

- name: Install PHP dependencies
uses: php-actions/composer@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php_version: 8.3
php-version: '8.3'

- name: Install PHP dependencies
run: composer install

- name: Run PHP Code Sniffer
uses: php-actions/phpcs@v1
with:
php_version: 8.3
path: src/
standard: phpcs.xml
run: composer lint

0 comments on commit 8882b66

Please sign in to comment.