Skip to content

[drop] test lint error #8

[drop] test lint error

[drop] test lint error #8

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: |
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
- name: Run golangci-lint
run: |
command -v golangci-lint
golangci-lint run --out-format=github-actions