Skip to content

Commit

Permalink
Merge pull request #97 from ConvertKit/annotate-pr-errors
Browse files Browse the repository at this point in the history
Annotate PR errors
  • Loading branch information
n7studios authored Aug 30, 2023
2 parents 8c38e09 + 9ec8649 commit bb86d37
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 bb86d37

Please sign in to comment.