split listing into separate job (#680)

pull/668/merge
Dean Karn 4 years ago committed by GitHub
parent 3bb4866602
commit f6584a41c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      .github/workflows/workflow.yml

@ -17,8 +17,10 @@ jobs:
with: with:
go-version: ${{ matrix.go-version }} go-version: ${{ matrix.go-version }}
- name: Checkout code
uses: actions/checkout@v2
- name: Restore Cache - name: Restore Cache
if: matrix.os != 'ubuntu-latest' && matrix.go-version != '1.15.x'
uses: actions/cache@v2 uses: actions/cache@v2
with: with:
path: ~/go/pkg/mod path: ~/go/pkg/mod
@ -26,15 +28,6 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-v1-go- ${{ 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 - name: Test
run: go test -race -covermode=atomic -coverprofile="profile.cov" ./... run: go test -race -covermode=atomic -coverprofile="profile.cov" ./...
@ -43,3 +36,13 @@ jobs:
uses: shogo82148/actions-goveralls@v1 uses: shogo82148/actions-goveralls@v1
with: with:
path-to-profile: profile.cov 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

Loading…
Cancel
Save