Skip to content

Commit

Permalink
Add the golangci-lint GitHub action
Browse files Browse the repository at this point in the history
Signed-off-by: Richard Wall <richard.wall@venafi.com>
  • Loading branch information
wallrj committed Dec 6, 2023
1 parent 6e307be commit e7eb116
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: golangci-lint
on:
push:
branches:
- master
pull_request:

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version-file: go.mod
# setup-go v4 uses cache automatically, which conflicts with golangci-lint's cache.
# See https://github.com/golangci/golangci-lint-action/pull/704
cache: false
- uses: golangci/golangci-lint-action@v3
with:
version: v1.55.2
args: --timeout=30m --config=.golangci.ci.yaml

0 comments on commit e7eb116

Please sign in to comment.