Skip to content

Commit f6584a4

Browse files
author
Dean Karn
authored
split listing into separate job (#680)
1 parent 3bb4866 commit f6584a4

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

.github/workflows/workflow.yml

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,17 @@ jobs:
1717
with:
1818
go-version: ${{ matrix.go-version }}
1919

20+
- name: Checkout code
21+
uses: actions/checkout@v2
22+
2023
- name: Restore Cache
21-
if: matrix.os != 'ubuntu-latest' && matrix.go-version != '1.15.x'
2224
uses: actions/cache@v2
2325
with:
2426
path: ~/go/pkg/mod
2527
key: ${{ runner.os }}-v1-go-${{ hashFiles('**/go.sum') }}
2628
restore-keys: |
2729
${{ runner.os }}-v1-go-
2830
29-
- name: Checkout code
30-
uses: actions/checkout@v2
31-
32-
- name: lint
33-
if: matrix.os == 'ubuntu-latest' && matrix.go-version == '1.15.x'
34-
uses: golangci/golangci-lint-action@v2
35-
with:
36-
version: v1.31
37-
3831
- name: Test
3932
run: go test -race -covermode=atomic -coverprofile="profile.cov" ./...
4033

@@ -43,3 +36,13 @@ jobs:
4336
uses: shogo82148/actions-goveralls@v1
4437
with:
4538
path-to-profile: profile.cov
39+
40+
golangci:
41+
name: lint
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v2
45+
- name: golangci-lint
46+
uses: golangci/golangci-lint-action@v2
47+
with:
48+
version: v1.31

0 commit comments

Comments
 (0)