ci: add integration tests for subdir runs
@@ -90,6 +90,18 @@ 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 }}
+ run: |
+ cd ./_testdata/ && golint ./... | reviewdog -f=golint -name=golint-pr-review-subdir -reporter=github-pr-review
+
golangci-lint:
if: github.event_name == 'pull_request'
name: runner / golangci-lint
