Skip to content

Merge pull request #9 from leberKleber/#8-update-fix-and-update-deps #59

Merge pull request #9 from leberKleber/#8-update-fix-and-update-deps

Merge pull request #9 from leberKleber/#8-update-fix-and-update-deps #59

Workflow file for this run

name: codecov
on: [ push ]
jobs:
codecov:
name: codecov
runs-on: ubuntu-latest
steps:
- name: Set up Go 1.21
uses: actions/setup-go@v1
with:
go-version: 1.21
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v1
- name: Get dependencies
run: |
go get -v -t -d ./...
if [ -f Gopkg.toml ]; then
curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
dep ensure
fi
- name: Generate coverage report
run: |
go test `go list ./... | grep -v examples` -coverprofile=coverage.txt -covermode=atomic
- name: Upload coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt
flags: unittests
name: codecov-umbrella