Skip to content

Commit

Permalink
use script to upload coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
shockerli committed Oct 20, 2021
1 parent 92d929f commit f9883ab
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
pull_request:
branches: [ master ]

# This enables a "Run workflow" button on the Actions tab
workflow_dispatch:

jobs:
build:
strategy:
Expand All @@ -27,7 +30,5 @@ jobs:
go test -race -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.go-version == '1.16' }}
with:
files: ./coverage.txt
if: ${{ github.event_name == 'push' && matrix.os == 'ubuntu-latest' && matrix.go-version == '1.13' }}
run: bash <(curl -s https://codecov.io/bash)

0 comments on commit f9883ab

Please sign in to comment.