Skip to content

Use another coverage tool #11

Use another coverage tool

Use another coverage tool #11

Workflow file for this run

# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.21.3'
- name: Install dependencies
run: |
go get .
go install github.com/axw/gocov/gocov@latest
go install github.com/AlekSi/gocov-xml@latest
- name: Build
run: CGO_ENABLED=0 go build -v -o conflictless cmd/conflictless/main.go
- name: Test
run: gocov test ./... | gocov-xml > coverage.xml
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.1