Skip to content

Commit

Permalink
.github: add golangci-lint workflow job.
Browse files Browse the repository at this point in the history
Signed-off-by: Krisztian Litkey <[email protected]>
  • Loading branch information
klihub authored and askervin committed Dec 17, 2024
1 parent deeb13c commit ab71151
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Lint

on:
push:
branches:
- main
- "release-*"
- "test/**"
pull_request:
branches:
- main
- "release-*"

env:
GO_VERSION: "1.22.1"

jobs:
golangci-lint:
name: golangci-lint
runs-on: ubuntu-24.04
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- uses: golangci/golangci-lint-action@v6
with:
version: v1.61
args: --timeout=10m

0 comments on commit ab71151

Please sign in to comment.