Skip to content

Fixing coverage reporting #48

Fixing coverage reporting

Fixing coverage reporting #48

Workflow file for this run

name: Go
on:
push:
branches: [ main, actions ]
pull_request:
branches: [ main, actions ]
jobs:
build:
name: Go Build (CGO)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
with:
go-version: ^1.20
id: go
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Test
run: |
go vet -v ./...
go test -v -race -covermode=atomic -coverprofile=coverage.out ./...
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3