Skip to content

truncate go version in go.mod #1

truncate go version in go.mod

truncate go version in go.mod #1

Workflow file for this run

name: Coverage
on:
push:
tags:
- 'v*'
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '1.21'
- run: |
go test -coverprofile=coverage.out -covermode=atomic ./...
for dir in v[0-9]*;
do
test -d "${dir}" || continue
cd "${dir}" || continue
go test -coverprofile="../coverage-${dir}.out" -covermode=atomic ./...
cd ..
done
- uses: codecov/codecov-action@v3
with:
files: coverage.out, coverage-*
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}