Skip to content

Commit

Permalink
Merge pull request #1473 from hairyhenderson/backport-3.11.x-use-ci-l…
Browse files Browse the repository at this point in the history
…int-action

[3.11.x backport] Switch to golangci-lint GitHub Action
  • Loading branch information
hairyhenderson authored Aug 4, 2022
2 parents b2fa8cc + b891a6f commit 262b4e5
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 7 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,3 @@ jobs:
path: bin/gomplate.exe
- run: make test
- run: make integration
lint:
runs-on: ubuntu-latest
container:
image: ghcr.io/hairyhenderson/gomplate-ci-build:latest
steps:
- uses: actions/checkout@v3
- run: make ci-lint
26 changes: 26 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: golangci-lint
on:
push:
branches:
- main
pull_request:

permissions:
contents: read

jobs:
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/setup-go@v3
with:
# Use 1.18 rather than 1.19 for linting due to https://github.com/golangci/golangci-lint/issues/2374
go-version: 1.18
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: latest
args: --max-same-issues=0 --max-issues-per-linter=0

0 comments on commit 262b4e5

Please sign in to comment.