CodeCov Coverage #7923
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CodeCov Coverage | |
on: | |
push: | |
pull_request: | |
merge_group: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout should always be before setup-go to ensure caching is working | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: '1.22' | |
- name: Run coverage | |
run: go test -coverprofile=coverage.out -covermode=count ./... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4 |