From c3e7356903d1f9fc77c1cc2a700e127edcafeee8 Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Mon, 1 Feb 2021 06:37:26 +0900 Subject: [PATCH] Add a golangci-lint Github Action The go vet is appended, because I have seen some important lint issues that are disabled by golangci-lint being reported by the vanilla go vet commnand --- .github/workflows/lint.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..283f40c --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,14 @@ +name: lint +on: [push] +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: golangci/golangci-lint-action@v2 + with: + version: v1.34.1 + - name: Run go vet + run: | + go vet ./...