diff --git a/.github/workflows/go-lint.yml b/.github/workflows/go-lint.yml new file mode 100644 index 000000000..4ff40998e --- /dev/null +++ b/.github/workflows/go-lint.yml @@ -0,0 +1,24 @@ +name: golangci-lint +on: + pull_request: + workflow_dispatch: + +permissions: + contents: read + # Optional: allow read access to pull request. Use with `only-new-issues` option. + pull-requests: read + +jobs: + golangci: + name: lint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version: '1.20' + cache: true + - name: golangci-lint + uses: golangci/golangci-lint-action@v3 + with: + version: latest