Skip to content

[codecov] add configuration for codecov.io #93

[codecov] add configuration for codecov.io

[codecov] add configuration for codecov.io #93

Workflow file for this run

name: go ci build
"on":
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Install go dependencies
run: go get .
- name: Build
run: go build -v ./...
- name: Test
run: go test ./... -cover -json > TestResults.json
- name: Cat results
if: always()
run: cat TestResults.json
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}