Skip to content

Commit

Permalink
.github/workflows: add golangci-lint GH action (projectcontour#2976)
Browse files Browse the repository at this point in the history
Uses https://github.com/marketplace/actions/run-golangci-lint to lint
code for new changes on PRs.

Fixes projectcontour#2972

Signed-off-by: Shayegan Hooshyari <sh.hooshyari@gmail.com>
  • Loading branch information
Glyphack authored Oct 22, 2020
1 parent b41d89a commit df3f1b1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/prbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
go-version: '1.15.2'
- name: lint
run: |
go mod vendor
make lint
version: v1.31
only-new-issues: true
codegen:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit df3f1b1

Please sign in to comment.