Skip to content

Add codecov badge

Add codecov badge #2

Workflow file for this run

---
name: Test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
go-version: [1.20.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go-version }}
- uses: actions/checkout@v3
- run: go test -coverprofile=coverage.txt
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}