Skip to content

Commit df932b1

Browse files
committed
fixed actions
1 parent 1331769 commit df932b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,23 @@ jobs:
2525
- name: Test
2626
run: make test
2727
- name: Lint
28+
if: matrix.os == 'ubuntu-latest'
2829
run: |
2930
go get golang.org/x/lint/golint
3031
export PATH="$PATH:$(go env GOPATH)/bin"
3132
make lint
3233
env:
3334
GO111MODULE: off
3435
- name: Declare some variables
36+
if: matrix.os == 'ubuntu-latest'
3537
id: vars
3638
run: |
3739
echo "::set-output name=coverage_txt::${RUNNER_TEMP}/coverage.txt"
3840
- name: Test Coverage (pkg)
41+
if: matrix.os == 'ubuntu-latest'
3942
run: go test ./... -coverprofile=${{ steps.vars.outputs.coverage_txt }}
4043
- name: Upload coverage
44+
if: matrix.os == 'ubuntu-latest'
4145
uses: codecov/codecov-action@v2
4246
with:
4347
files: ${{ steps.vars.outputs.coverage_txt }}

0 commit comments

Comments
 (0)