summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorDave Henderson <dhenderson@gmail.com>2022-08-04 12:52:08 -0400
committerDave Henderson <dhenderson@gmail.com>2022-08-04 12:52:08 -0400
commit6f09aaf7f46e95d723ce151b121cc8e18b65a12f (patch)
treeff9a8bff2f196cd6ea88622efc5dfdcb0caa86f2 /.github
parentd5db41eb831f363b16615eec5cfbe36b2f20df6e (diff)
Switch to golangci-lint GitHub Action
Signed-off-by: Dave Henderson <dhenderson@gmail.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml7
-rw-r--r--.github/workflows/lint.yml26
2 files changed, 26 insertions, 7 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 11274392..f879ac0f 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -61,10 +61,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
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
new file mode 100644
index 00000000..d8ae5c68
--- /dev/null
+++ b/.github/workflows/lint.yml
@@ -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
+