Skip to content

Commit

Permalink
Annotate PR errors
Browse files Browse the repository at this point in the history
  • Loading branch information
n7studios committed Aug 29, 2023
1 parent 8c38e09 commit 9ec8649
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/coding-standards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ jobs:
with:
php-version: ${{ matrix.php-versions }}
coverage: xdebug
tools: cs2pr

# Installs wp-browser, Codeception, PHP CodeSniffer and anything else needed to run tests.
- name: Run Composer
Expand All @@ -119,14 +120,14 @@ jobs:
# Run Coding Standards on Tests.
- name: Run Coding Standards on Tests
working-directory: ${{ env.PLUGIN_DIR }}
run: php vendor/bin/phpcs ./tests --standard=phpcs.tests.xml -v -s
run: php vendor/bin/phpcs -q --standard=phpcs.tests.xml --report=checkstyle ./tests | cs2pr

# Run WordPress Coding Standards on Plugin.
- name: Run WordPress Coding Standards
working-directory: ${{ env.PLUGIN_DIR }}
run: php vendor/bin/phpcs ./ --standard=phpcs.xml -v -s
run: php vendor/bin/phpcs -q --standard=phpcs.xml --report=checkstyle ./ | cs2pr

# Run PHPStan for static analysis.
- name: Run PHPStan Static Analysis
working-directory: ${{ env.PLUGIN_DIR }}
run: php vendor/bin/phpstan --memory-limit=1024M
run: php vendor/bin/phpstan analyse --memory-limit=1024M

0 comments on commit 9ec8649

Please sign in to comment.