Skip to content

Commit

Permalink
Lint in a separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
EricHripko authored Feb 23, 2021
1 parent e1a4415 commit 720642f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@ name: CI
on: push

jobs:
ci:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.37
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -16,13 +25,6 @@ jobs:
- name: Build
run: go build -v ./...

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.37
# Skip caching since it fails
skip-pkg-cache: true
skip-build-cache: true
- name: Package
uses: docker/build-push-action@v2
with:
Expand Down

0 comments on commit 720642f

Please sign in to comment.