From d304cbd88be69473bd79695a38644f3e7f1dfd22 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Mon, 13 Nov 2023 12:30:32 -0800 Subject: [PATCH] github actions: add missing Go linter (#428) --- .github/workflows/lint.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..408cb67 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,20 @@ +name: Lint Go Code + +on: + push: + branches: + - main + pull_request: + +jobs: + golangci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.21' + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest