Skip to content

Commit

Permalink
ci: Run Linting as a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
dthomson25 committed Jul 14, 2020
1 parent db3ad5e commit 057fdb9
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,17 @@ on:
branches:
- 'master'
jobs:

lint-go:
name: Lint Go code
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v1
with:
version: v1.26
args: --timeout 5m
build:
name: Build
runs-on: ubuntu-latest
Expand Down Expand Up @@ -38,12 +48,6 @@ jobs:
- name: Compile all packages
run: make controller plugin

- name: Run golangci-lint
uses: golangci/golangci-lint-action@v1
with:
version: v1.26
args: --timeout 5m

- name: Test
run: go test -failfast -covermode=count -coverprofile=coverage.out ./...

Expand Down

0 comments on commit 057fdb9

Please sign in to comment.