Skip to content

Commit

Permalink
Use golangci-lint-action
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Jul 7, 2023
1 parent 56d823a commit b7fa6dc
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,9 @@ jobs:
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Read Go version
id: go_version
run: echo "go_version=$(cat .go-version)" >> $GITHUB_OUTPUT
- name: Install Go (${{ steps.go_version.outputs.go_version }})
uses: actions/setup-go@v4
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
go-version: ${{ steps.go_version.outputs.go_version }}
- name: Install golangci-lint
run: |
echo $(go env GOPATH)/bin >> $GITHUB_PATH
echo $PATH
make bingo
bingo get -l golangci-lint
- name: Lint code
run: echo $(go env GOPATH)/bin >> $GITHUB_PATH
make lint
version: "v1.53.3"
args: "--timeout=5m"
install-mode: "binary"

0 comments on commit b7fa6dc

Please sign in to comment.