Skip to content

Commit 0b04b2e

Browse files
committed
Switch to golangci-lint
1 parent bf66d20 commit 0b04b2e

File tree

3 files changed

+24
-3
lines changed

3 files changed

+24
-3
lines changed

.github/workflows/continuous_delivery.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,6 @@ jobs:
3232
- name: Build docker image
3333
run: make image
3434

35-
- name: Lint
36-
run: make lint
37-
3835
- name: Test
3936
run: git show --stat && make testci
4037

.github/workflows/lint.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint
2+
3+
on:
4+
push:
5+
branches: [master] # pushes TO master
6+
pull_request:
7+
branches: [master] # pull requests AGAINST master
8+
9+
jobs:
10+
golangci:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: golangci-lint
16+
uses: golangci/golangci-lint-action@v2
17+
with:
18+
version: v1.39.0

.golangci.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
run:
2+
modules-download-mode: readonly
3+
4+
linters:
5+
disable:
6+
- errcheck

0 commit comments

Comments
 (0)