Skip to content

Commit

Permalink
Annotate PRs from code analysis reports
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpoe committed Dec 19, 2021
1 parent a2c2dfd commit 47547da
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/code-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ jobs:
php-version: 8.0
extensions: mbstring
coverage: none
tools: composer:v2
tools: composer:v2, cs2pr
env:
COMPOSER_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"

- name: Run PhpStan
run: vendor/bin/phpstan
run: vendor/bin/phpstan --error-format=checkstyle | cs2pr

- name: Run PhpCS
run: vendor/bin/phpcs --no-cache --parallel=1 --report-full
run: vendor/bin/phpcs --no-cache --parallel=1 --report-full --report-checkstyle --graceful-warnings --notices-as-warnings | cs2pr

0 comments on commit 47547da

Please sign in to comment.