Skip to content

Lint

Lint #1

Workflow file for this run

name: Lint
on:
pull_request_review:
branches:
- main
types: [submitted]
paths:
- '**/*.go'
jobs:
lint:
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '>=1.22'
cache: false
# Run vet and cli-lint for static linting
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
- name: Run go vet
run: go vet ./...