Skip to content

ci: add Codecov to check test coverage #3

ci: add Codecov to check test coverage

ci: add Codecov to check test coverage #3

Workflow file for this run

name: Codecov CI
on:
push:
branches: [main]
pull_request:
jobs:
codecov:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.21"
- name: Generate coverage report ./...
run: go test -coverprofile=coverage.txt
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}