Skip to content

ci: add coverall integration #66

ci: add coverall integration

ci: add coverall integration #66

Workflow file for this run

on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
go-version: [ oldstable, stable ]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}
- name: Check and get dependencies
run: |
go mod download
go mod tidy
git diff --exit-code go.mod
git diff --exit-code go.sum
- run: make build
- run: make test
- uses: shogo82148/actions-goveralls@v1
if: github.event_name != 'pull_request'
with:
path-to-profile: coverage.txt
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- uses: golangci/golangci-lint-action@v6
with:
version: v1.62
- run: make build
- run: go vet -vettool=./recvcheck ./...