Skip to content

add test for Makefile #17

add test for Makefile

add test for Makefile #17

Workflow file for this run

name: coverage
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.22'
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Run tests
run: go test -v -coverprofile=coverage.out $(go list ./... | grep -v /example)
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: goveralls -coverprofile=coverage.out -service=github