v1.3.7 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ============================================================================= | |
# Update CodeCov | |
# ============================================================================= | |
# This Workflow to updates the coverage to CodeCov.io on release. | |
name: Update codecov.io | |
on: | |
workflow_dispatch: | |
release: | |
types: | |
- created | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: '1.17' | |
check-latest: true | |
- name: Run coverage | |
run: go test -coverprofile=coverage.txt -covermode=atomic ./... | |
- name: Upload coverage to Codecov | |
run: bash <(curl -s https://codecov.io/bash) |