Skip to content

lint

lint #294

Workflow file for this run

name: lint
on:
pull_request:
types:
- edited
- opened
- ready_for_review
- synchronize
merge_group:
workflow_dispatch:
permissions:
contents: read
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Setup Go toolchain
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0
with:
go-version-file: "./go.mod"
- name: golangci-lint
uses: golangci/golangci-lint-action@55c2c1448f86e01eaae002a5a3a9624417608d84 # v6.5.2
- name: lint PR title / commit message
if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
uses: grafana/shared-workflows/actions/lint-pr-title@402975d84dd3fac9ba690f994f412d0ee2f51cf4 # lint-pr-title-v1.1.1