-
Notifications
You must be signed in to change notification settings - Fork 524
CI: update reviewdog warning linter job #6175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
907dcba
try commenting out partitiontest linter
cce e147889
change reviewdog warning flags to match reviewdog error flags
cce 42b9539
update excludes list
cce c65c3a9
reenable partitiontest
cce f567965
add nolint for warning found
cce 3bed8af
switch to "added" instead of "nofilter" for warnings
cce File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,6 @@ | ||
| name: "ReviewDog workflow" | ||
| env: | ||
| GOLANGCI_LINT_VERSION: "v1.62.0" | ||
| on: | ||
| push: | ||
| branches: | ||
|
|
@@ -20,7 +22,7 @@ jobs: | |
| uses: reviewdog/[email protected] | ||
| with: | ||
| go_version_file: go.mod | ||
| golangci_lint_version: "v1.62.0" | ||
| golangci_lint_version: ${{ env.GOLANGCI_LINT_VERSION }} | ||
| golangci_lint_flags: "-c .golangci.yml --allow-parallel-runners" | ||
| reporter: "github-pr-check" | ||
| tool_name: "Lint Errors" | ||
|
|
@@ -56,14 +58,14 @@ jobs: | |
| uses: actions/[email protected] | ||
| with: | ||
| path: cicdtmp/golangci-lint/golangci-lint-cgo | ||
| key: cicd-golangci-lint-cgo-v0.0.2-${{ env.GO_VERSION }} | ||
| key: cicd-golangci-lint-cgo-v0.0.3-${{ env.GO_VERSION }}-${{ env.GOLANGCI_LINT_VERSION }} | ||
|
|
||
| - name: Build custom golangci-lint with CGO_ENABLED | ||
| if: steps.cache-golangci-lint.outputs.cache-hit != 'true' | ||
| run: | | ||
| cd cicdtmp/golangci-lint | ||
| git clone https://github.com/golangci/golangci-lint.git . | ||
| git checkout tags/v1.62.0 | ||
| git checkout tags/${GOLANGCI_LINT_VERSION} | ||
| CGO_ENABLED=true go build -trimpath -o golangci-lint-cgo ./cmd/golangci-lint | ||
| ./golangci-lint-cgo --version | ||
| cd ../../ | ||
|
|
@@ -92,8 +94,8 @@ jobs: | |
| cat temp_golangci-lint-cgo.txt | reviewdog \ | ||
| -f=golangci-lint \ | ||
| -name="Lint Warnings" \ | ||
| -reporter=github-check \ | ||
| -filter-mode=added \ | ||
| -reporter=github-pr-check \ | ||
| -filter-mode=nofilter \ | ||
| -fail-on-error=true \ | ||
| -level=warning | ||
| - name: Slack Notification | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.