Skip to content

Coverage

Coverage #65

Workflow file for this run

name: Coverage
on:
workflow_run:
workflows: [ Test ]
branches: [ main ]
types:
- completed
jobs:
coverage:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: stable
- name: Send Coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
go test -race -covermode atomic -coverprofile=covprofile ./...
go install github.com/mattn/goveralls@latest
goveralls -coverprofile=covprofile -service=github