From 0b04b2e556f6e93b0a93ec26bce81a72b47919cc Mon Sep 17 00:00:00 2001
From: Will McCutchen <will@mccutch.org>
Date: Wed, 5 May 2021 11:50:45 -0400
Subject: [PATCH] Switch to golangci-lint

---
 .github/workflows/continuous_delivery.yaml |  3 ---
 .github/workflows/lint.yaml                | 18 ++++++++++++++++++
 .golangci.yaml                             |  6 ++++++
 3 files changed, 24 insertions(+), 3 deletions(-)
 create mode 100644 .github/workflows/lint.yaml
 create mode 100644 .golangci.yaml

diff --git a/.github/workflows/continuous_delivery.yaml b/.github/workflows/continuous_delivery.yaml
index cfcf7f7..787c912 100644
--- a/.github/workflows/continuous_delivery.yaml
+++ b/.github/workflows/continuous_delivery.yaml
@@ -32,9 +32,6 @@ jobs:
     - name: Build docker image
       run: make image
 
-    - name: Lint
-      run: make lint
-
     - name: Test
       run: git show --stat && make testci
 
diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml
new file mode 100644
index 0000000..8182c68
--- /dev/null
+++ b/.github/workflows/lint.yaml
@@ -0,0 +1,18 @@
+name: Lint
+
+on:
+  push:
+    branches: [master] # pushes TO master
+  pull_request:
+    branches: [master] # pull requests AGAINST master
+
+jobs:
+  golangci:
+    name: Lint
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v2
+      - name: golangci-lint
+        uses: golangci/golangci-lint-action@v2
+        with:
+          version: v1.39.0
diff --git a/.golangci.yaml b/.golangci.yaml
new file mode 100644
index 0000000..3ed8562
--- /dev/null
+++ b/.golangci.yaml
@@ -0,0 +1,6 @@
+run:
+  modules-download-mode: readonly
+
+linters:
+  disable:
+  - errcheck
-- 
GitLab