Skip to content

Add coverage (goveralls) github action #15

Add coverage (goveralls) github action

Add coverage (goveralls) github action #15

Workflow file for this run

on:
push:
branches:
- master
pull_request:
name: Coverage
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: '1.25.x'
- name: Checkout code
uses: actions/checkout@v2
- name: Clean environment
run: |
go clean -modcache
rm -f profile.cov
- name: Test
run: |
go test -coverprofile=profile.cov ./...
- name: Install Coveralls
run: go install github.com/mattn/goveralls@v0.0.12
- name: Submit coverage to Coveralls
run: |
goveralls -coverprofile=profile.cov -service=github