Skip to content

Commit

Permalink
Fail early if lint fails
Browse files Browse the repository at this point in the history
  • Loading branch information
bai committed Feb 1, 2022
1 parent c51d007 commit 8228604
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,16 @@ jobs:
restore-keys: |
${{ runner.os }}-go-
- name: Lint
uses: golangci/golangci-lint-action@v2
if: ${{ matrix.go-version == '1.17.x' }}
with:
version: v1.44.0

- name: Test (Unit)
run: make test
if: ${{ matrix.go-version != '1.17.x' }}

- name: Test (Functional)
run: make test_functional
if: ${{ matrix.go-version == '1.17.x' }}

- name: Lint
uses: golangci/golangci-lint-action@v2
if: ${{ matrix.go-version == '1.17.x' }}
with:
version: v1.44.0
args: --enable goimports

0 comments on commit 8228604

Please sign in to comment.