Skip to content

Test and Coverage

Test and Coverage #65

Workflow file for this run

name: Test and Coverage
on:
pull_request:
types:
- opened
- synchronize
paths-ignore:
- README.md
- .gitignore
push:
branches:
- main
merge_group:
jobs:
coverage:
runs-on: ubuntu-latest
strategy:
matrix:
go-version:
- '1.21'
- '1.22'
env:
GOPATH: /home/runner/go
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
submodules: recursive
- name: Setup Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: ${{ matrix.go-version }}
check-latest: true
- name: Generate coverage report
run: make test
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
with:
token: ${{ secrets.CODECOV_TOKEN }}