-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #521 from pterm/520-add-reviewdog-with-golangci-lint
- Loading branch information
Showing
2 changed files
with
11 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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,21 +1,16 @@ | ||
name: Code analysis | ||
|
||
|
||
name: golangci-lint | ||
on: [ push, pull_request ] | ||
on: [pull_request] | ||
jobs: | ||
golangci: | ||
if: "!contains(github.event.head_commit.message, 'autoupdate')" | ||
name: lint | ||
golangci-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v4 | ||
- name: Check out code into the Go module directory | ||
uses: actions/checkout@v3 | ||
with: | ||
go-version: 1.18 | ||
|
||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v3 | ||
fetch-depth: 0 | ||
- name: Linting with golangci-lint | ||
uses: reviewdog/action-golangci-lint@v2 | ||
with: | ||
version: latest | ||
github_token: ${{ secrets.ACCESS_TOKEN }} | ||
reporter: github-pr-review |
This file contains 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