Skip to content

Add test coverage and flesh out Readme a bit #2

Add test coverage and flesh out Readme a bit

Add test coverage and flesh out Readme a bit #2

Workflow file for this run

name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Test
run: go test -coverprofile=cover.out .
- name: Send coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: cover.out
- name: Modver
if: ${{ github.event_name == 'pull_request' }}
uses: bobg/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
pull_request_url: https://github.com/${{ github.repository }}/pull/${{ github.event.number }}