Skip to content

Commit

Permalink
feat: introduce linter to run on PR builds
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>
  • Loading branch information
Patrick Pichler committed Apr 25, 2023
1 parent db4a88e commit 5e67c07
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 5e67c07

Please sign in to comment.