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 k8sgpt-ai#330
  • Loading branch information
Patrick Pichler committed Apr 25, 2023
1 parent db4a88e commit ba65f48
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 ba65f48

Please sign in to comment.