Skip to content

improve test coverage #17

improve test coverage

improve test coverage #17

Workflow file for this run

name: tests
on:
pull_request:
branches:
- "main"
push:
branches:
- "main"
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest]
go-version: [oldstable, stable]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Test
run: go test -v -covermode=atomic -coverprofile=coverage.txt ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
if: matrix.go-version == 'stable'
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.txt