Skip to content

Commit

Permalink
Added linting to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TSonono committed May 20, 2022
1 parent 295f4f3 commit fe139c2
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,27 @@ jobs:

- name: Test
run: go test -v ./...

- name: Run golangci-lint
# You may pin to the exact commit or the version.
# uses: golangci/golangci-lint-action@537aa1903e5d359d0b27dbc19ddd22c5087f3fbc
uses: golangci/golangci-lint-action@v3.2.0
with:
# version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: # optional
# golangci-lint command line arguments
args: # optional, default is
# golangci-lint working directory, default is project root
working-directory: # optional
# the token is used for fetching patch of a pull request to show only new issues
github-token: # default is ${{ github.token }}
# if set to true and the action runs on a pull request - the action outputs only newly found issues
only-new-issues: true

# if set to true then the all caching functionality will be complete
# disabled, takes precedence over all other caching options.
skip-cache: false
# if set to true then the action doesn't cache or restore ~/go/pkg.
skip-pkg-cache: false
# if set to true then the action doesn't cache or restore ~/.cache/go-build.
skip-build-cache: false

0 comments on commit fe139c2

Please sign in to comment.