Run sub-dir with github-check test on non pull request
@@ -35,6 +35,12 @@ jobs:
run: |
golint ./... | reviewdog -f=golint -name=golint-github-check -reporter=github-check -level=warning
+ - name: Run reviewdog with sub-dir (github-check)
+ env:
+ REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ run: |
+ cd ./_testdata/ && golint ./... | reviewdog -f=golint -name=golint-check-subdir -reporter=github-check -level=info
+
reviewdog-pr:
if: github.event_name == 'pull_request'
name: reviewdog on Pull Request
@@ -90,12 +96,6 @@ jobs:
echo "::remove-matcher owner=go::"
golint ./... | reviewdog -f=golint -name=golint-pr-review -reporter=github-pr-review -tee
- - name: Run reviewdog with sub-dir (github-check)
- env:
- REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
- cd ./_testdata/ && golint ./... | reviewdog -f=golint -name=golint-check-subdir -reporter=github-check
-
- name: Run reviewdog with sub-dir (github-pr-review)
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
