Skip to content

Merge pull request #289 from go-logr/dependabot/github_actions/golang… #549

Merge pull request #289 from go-logr/dependabot/github_actions/golang…

Merge pull request #289 from go-logr/dependabot/github_actions/golang… #549

Workflow file for this run

name: Run lint
on: [ push, pull_request ]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Update Go
uses: actions/[email protected]
with:
go-version: '>=1.21.0'
cache: false
- name: Lint
uses: golangci/golangci-lint-action@38e1018663fa5173f3968ea0777460d3de38f256 # v5.3.0
with:
# version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
version: latest
# Optional: show only new issues if it's a pull request. The default value is `false`.
# only-new-issues: true
# Read args from .golangci.yaml
# args: