Skip to content

Commit

Permalink
ci: update to latest Go and golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
kyleam committed Aug 13, 2024
1 parent 4260397 commit f044cb9
Showing 1 changed file with 4 additions and 17 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,15 @@ on:
- 'scratch/**'
pull_request:

# Note: this avoids golangci/golangci-lint-action to work around an
# error triggered by us pinning to a golangci-lint version built with
# an older Go. Revisit when moving from golangci-lint v1.47.2.
#
# https://github.com/golangci/golangci-lint-action/issues/442#issuecomment-1203786890
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Install golangci-lint
shell: bash
run: |
bin=$(mktemp -d)
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | \
sh -s -- -b "$bin" v1.47.2
echo "$bin" >>$GITHUB_PATH
go-version: stable
- name: Run golangci-lint
shell: bash
run: |
command -v golangci-lint
golangci-lint run --out-format=github-actions
uses: golangci/golangci-lint-action@v6
with:
version: v1.59

0 comments on commit f044cb9

Please sign in to comment.