diff --git a/.github/workflows/golint.yml b/.github/workflows/golint.yml new file mode 100644 index 0000000..6a2fdb6 --- /dev/null +++ b/.github/workflows/golint.yml @@ -0,0 +1,26 @@ +name: Go Lint + +on: + pull_request: + branches: [main] + push: + branches: + - main + workflow_dispatch: + +permissions: + contents: write + +jobs: + golint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 + with: + fetch-depth: 0 + + - name: Go Lint + uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v4.0.0 + with: + version: v1.54