Skip to content

add readme job -fix3 #14

add readme job -fix3

add readme job -fix3 #14

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