From ebbfcdab8f0ec7adce9bab191e7a67f0eb60a35e Mon Sep 17 00:00:00 2001 From: kitamin <11195207+meian@users.noreply.github.com> Date: Tue, 22 Mar 2022 01:00:30 +0900 Subject: [PATCH] fixup! #96 Add lint github action --- .github/workflows/lint.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 8115d29..fae47cb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,17 +4,18 @@ jobs: # NOTE: golangci-lint doesn't report multiple errors on the same line from # different linters and just report one of the errors? - golangci-lint: - name: golangci-lint + golangci: + name: golangci runs-on: ubuntu-latest steps: - name: Check out code into the Go module directory uses: actions/checkout@v3 - - name: golangci-lint + - name: golangci uses: reviewdog/action-golangci-lint@v2 with: # optionally use a specific version of Go rather than the latest one go_version: "1.18" + fail_on_error: true # Can pass --config flag to change golangci-lint behavior and target # directory. @@ -35,6 +36,7 @@ jobs: golangci_lint_flags: "--disable-all -E golint" tool_name: golint # Change reporter name. # level: warning # GitHub Status Check won't become failure with this level. + fail_on_error: true # You can add more and more supported linters with different config. errcheck: @@ -50,3 +52,4 @@ jobs: golangci_lint_flags: "--disable-all -E errcheck" tool_name: errcheck level: info + fail_on_error: true