From af4be2132b71c0735652b1081df4076e9ddaa54e Mon Sep 17 00:00:00 2001 From: Maxwell Date: Fri, 25 Aug 2023 01:09:00 +0000 Subject: [PATCH] golangci-lint implementation --- .github/workflows/golangci-lint.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/golangci-lint.yaml diff --git a/.github/workflows/golangci-lint.yaml b/.github/workflows/golangci-lint.yaml new file mode 100644 index 0000000..ee75d79 --- /dev/null +++ b/.github/workflows/golangci-lint.yaml @@ -0,0 +1,23 @@ +name: Go Lint + +on: [push, pull_request] + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - name: Check out code + uses: actions/checkout@v2 + + - name: Set up Go + uses: actions/setup-go@v2 + with: + go-version: 1.20 + + - name: Run golangci-lint + uses: golangci/golangci-lint-action@v2 + with: + version: v1.42.0 + args: --issues-exit-code=0 + working-directory: . \ No newline at end of file