aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/build.yml12
-rw-r--r--.golangci.yaml10
2 files changed, 20 insertions, 2 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index f09e7bf..4276554 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -7,8 +7,16 @@ on:
branches: [ main ]
jobs:
-
- build:
+ lint:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v2
+ - name: golangci-lint
+ uses: golangci/golangci-lint-action@v2
+ with:
+ version: v1.29
+ only-new-issues: true
+ test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
diff --git a/.golangci.yaml b/.golangci.yaml
new file mode 100644
index 0000000..7c47848
--- /dev/null
+++ b/.golangci.yaml
@@ -0,0 +1,10 @@
+run:
+ tests: false
+
+severity:
+ default-severity: error
+ rules:
+ - severity: warning
+ linters:
+ - errcheck # for now, make errcheck only a warning, remove it later
+ - deadcode