Skip to content

Commit

Permalink
split listing into separate job (#680)
Browse files Browse the repository at this point in the history
  • Loading branch information
deankarn committed Oct 17, 2020
1 parent 3bb4866 commit f6584a4
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions .github/workflows/workflow.yml
Expand Up @@ -17,24 +17,17 @@ jobs:
with:
go-version: ${{ matrix.go-version }}

- name: Checkout code
uses: actions/checkout@v2

- name: Restore Cache
if: matrix.os != 'ubuntu-latest' && matrix.go-version != '1.15.x'
uses: actions/cache@v2
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-v1-go-
- name: Checkout code
uses: actions/checkout@v2

- name: lint
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.15.x'
uses: golangci/golangci-lint-action@v2
with:
version: v1.31

- name: Test
run: go test -race -covermode=atomic -coverprofile="profile.cov" ./...

Expand All @@ -43,3 +36,13 @@ jobs:
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: profile.cov

golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
with:
version: v1.31

0 comments on commit f6584a4

Please sign in to comment.