Skip to content

Commit

Permalink
Merge pull request #55 from reload/pr-check
Browse files Browse the repository at this point in the history
test
  • Loading branch information
xendk authored Jun 10, 2020
2 parents 72ea0f3 + ee161d3 commit 177b891
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/static-code-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Static code analysis

on: [push]
on: pull_request

jobs:
phpmd:
Expand All @@ -17,7 +17,7 @@ jobs:
- name: PHPMD
run: php phpmd.phar src text codesize,unusedcode,naming | ./bin/reviewdog -efm="%f:%l %m" -name="PHPMD" -reporter=github-check
env:
REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
phpcs:
runs-on: ubuntu-latest
steps:
Expand All @@ -32,7 +32,7 @@ jobs:
- name: PHPCS
run: php phpcs.phar --standard=PSR2 --report=checkstyle src | ./bin/reviewdog -f=checkstyle -name="PHPCS" -reporter=github-check
env:
REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
phploc:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -67,6 +67,6 @@ jobs:
- name: phpdoccheck
run: phpdoccheck -d src --skip-classes | ./bin/reviewdog -efm="ERROR %f:%l - %m" -name="phpdoccheck" -reporter=github-check
env:
REVIEWDOG_TOKEN: ${{ secrets.REVIEWDOG_TOKEN }}
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}


0 comments on commit 177b891

Please sign in to comment.