Skip to content

Upload code coverage to codecov #178

Upload code coverage to codecov

Upload code coverage to codecov #178

Workflow file for this run

name: Build and test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '^1.21.1'
- name: Build
run: go build -v ./cmd/gobble
- name: Test
run: go test -race -covermode=atomic -coverprofile=coverage.out ./...
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}