Skip to content

Merge pull request #9 from madflojo/fixing-badge #14

Merge pull request #9 from madflojo/fixing-badge

Merge pull request #9 from madflojo/fixing-badge #14

Workflow file for this run

name: tests
on:
push:
tags:
- v*
branches:
- actions
- main
pull_request:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
- name: Install cover
run: go get golang.org/x/tools/cmd/cover
- name: Install goveralls
run: go install github.com/mattn/goveralls@latest
- name: Test
run: go test -race -v -covermode=atomic -coverprofile=coverage.out ./...
- name: Update Coveralls
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.out -service=github