Skip to content

[wip] ci: switch to GitHub Actions #2

[wip] ci: switch to GitHub Actions

[wip] ci: switch to GitHub Actions #2

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-file: go.mod
- name: Install golangci-lint
run: go install github.com/golangci/golangci-lint/cmd/[email protected]
- name: Run golangci-lint
run: golangci-lint run --version --verbose --out-format=github-actions