diff --git a/.github/workflows/golangci_lint.yaml b/.github/workflows/golangci_lint.yaml new file mode 100644 index 0000000000..4bec93ba43 --- /dev/null +++ b/.github/workflows/golangci_lint.yaml @@ -0,0 +1,18 @@ +name: Run golangci-lint + +on: + pull_request: + branches: [ main ] + +jobs: + golangci-lint: + runs-on: ubuntu-latest + steps: + - name: Check out code into the Go module directory + uses: actions/checkout@v3 + + - name: golangci-lint + uses: reviewdog/action-golangci-lint@v2 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + reporter: github-pr-check