Skip to content

Commit

Permalink
feat: introduce linter to run on PR builds (#333)
Browse files Browse the repository at this point in the history
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 <git@patrickpichler.dev>
Co-authored-by: Patrick Pichler <git@patrickpichler.dev>
  • Loading branch information
patrickpichler and Patrick Pichler committed Apr 25, 2023
1 parent db4a88e commit 252c734
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/golangci_lint.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 252c734

Please sign in to comment.