add codecov

This commit is contained in:
Joel Wetzell
2026-08-28 09:51:19 -05:00
parent e0d4b58606
commit 8c53142012
3 changed files with 24 additions and 62 deletions
+24
View File
@@ -0,0 +1,24 @@
name: Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version-file: "./go.mod"
- name: Run tests
run: go test -coverprofile=coverage.txt ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.txt