immucore/.github/workflows/lint.yaml
Itxaka dbc697a479
Bump golangci lint config (#453)
Signed-off-by: Itxaka <itxaka@kairos.io>
2025-03-25 11:48:39 +01:00

32 lines
773 B
YAML

name: Lint
on:
push:
branches:
- main
pull_request:
concurrency:
group: ci-lint-${{ github.head_ref || github.ref }}-${{ github.repository }}
cancel-in-progress: true
permissions:
# Required: allow read access to the content for analysis.
contents: read
# Optional: allow read access to pull request. Use with `only-new-issues` option.
pull-requests: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5.4.0
with:
go-version-file: go.mod
- name: Golangci-lint
uses: golangci/golangci-lint-action@v7.0.0
with:
version: latest
only-new-issues: true