Skip to content

Replace travis with github actions #13

Replace travis with github actions

Replace travis with github actions #13

Workflow file for this run

name: unittests
on:
push:
pull_request:
types: [opened, reopened]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
go-version: ['1.19.x','1.20.x', '1.21.x']
steps:
- uses: actions/checkout@v4
- name: Setup Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}
- name: tests
run: |
go install github.com/axw/gocov/gocov@latest
go install github.com/mattn/goveralls@latest
if ! go install github.com/golang/tools/cmd/cover@latest; then go install golang.org/x/tools/cmd/cover@latest; fi
go test -v -covermode=count -coverprofile=coverage.out
test -z $(gofmt -l .)