From 6d683b74066094a11128b5266215bcb49c3fd1df Mon Sep 17 00:00:00 2001 From: Ian Molee Date: Mon, 8 Apr 2024 18:12:33 -0700 Subject: [PATCH] Add golangci-lint Github Action --- .github/workflows/golangci-lint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/golangci-lint.yml diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml new file mode 100644 index 0000000..8e68915 --- /dev/null +++ b/.github/workflows/golangci-lint.yml @@ -0,0 +1,24 @@ +name: golangci-lint +on: + push: + branches: + - master + pull_request: + +permissions: + contents: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.22" + cache: false + - name: golangci-lint + uses: golangci/golangci-lint-action@v4 + with: + version: latest