Skip to content

[drop] test lint error #7

[drop] test lint error

[drop] test lint error #7

Workflow file for this run

name: lint
on:
push:
branches:
- main
- 'scratch/**'
pull_request:
# Note: this doesn't use 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: stable
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Adjust PATH
shell: bash
run: echo "$(go env GOPATH)/bin:$PATH" >>$GITHUB_PATH
- name: Run golangci-lint
run: golangci-lint run --out-format=github-actions