Skip to content

Added an example

Added an example #7

Workflow file for this run

name: Go Test
on:
workflow_dispatch:
push:
branches: [trunk]
pull_request:
branches: [trunk]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.22
- name: Test
run: make test
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: goveralls -coverprofile=profile.cov -service=github