chore: add required labels check for backporting (#543) (#544) #1760
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
pull_request: | |
branches: | |
- "**" | |
push: | |
branches: | |
- "main" | |
- "v[0-9]**" | |
jobs: | |
lint: | |
name: Run linter | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- uses: technote-space/[email protected] | |
with: | |
PATTERNS: | | |
**/**.go | |
go.mod | |
go.sum | |
.github/** | |
Makefile | |
- name: 🐿 Setup Golang | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: Run golangci-lint | |
if: env.GIT_DIFF | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: v1.54 | |
skip-cache: true |