Skip to content

Move to github actions (#14) #4

Move to github actions (#14)

Move to github actions (#14) #4

Workflow file for this run

name: Build
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Go 1.21.x
uses: actions/setup-go@v5
with:
go-version: 1.21.x
- name: Install goveralls
run: go install github.com/mattn/goveralls@b031368
- name: Build
run: go build
- name: Test
run: go test -v -covermode=count -coverprofile=coverage.out
- name: Send coverage
env:
COVERALLS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: goveralls -coverprofile=coverage.out -service=github