From 252c7343106bf64c86861a9452e8618efc72881c Mon Sep 17 00:00:00 2001 From: Patrick Pichler Date: Tue, 25 Apr 2023 14:02:47 +0200 Subject: [PATCH] feat: introduce linter to run on PR builds (#333) In order to catch a variaty of small and quick to happen mistakes, there is now an additional action in place which runs a linter on the PR content. fixes #330 Signed-off-by: Patrick Pichler Co-authored-by: Patrick Pichler --- .github/workflows/golangci_lint.yaml | 18 ++++++++++++++++++ 1 file changed, 18 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 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