Skip to content

chore(release): 1.9.0 #12

chore(release): 1.9.0

chore(release): 1.9.0 #12

Workflow file for this run

name: golang-codecov
on:
push:
tags:
- '*' # Push events to matching *, i.e. 1.0.0 v1.0, v20.15.10
permissions:
contents: write
jobs:
golang-codecov:
name: golang-codecov
strategy:
matrix:
go:
- '^1.19'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go SDK
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go }}
cache: false
- name: Print env info
run: |
go env
go version
- name: Run go build
run: go build -v -tags test ./...
- name: Run test coverage
run: go test -cover -tags test -coverprofile coverage.txt -covermode count -coverpkg ./... -v ./...
- name: Codecov
uses: codecov/codecov-action@v4.1.0
with:
token: ${{secrets.CODECOV_TOKEN}}
files: coverage.txt
# verbose: true