From 1be7b20926251f69f4c0fb3d857d9d6a1e049cd7 Mon Sep 17 00:00:00 2001 From: georgepsarakis Date: Sun, 17 Dec 2023 09:56:56 +0200 Subject: [PATCH] Add coverage statistics in CI --- .github/workflows/test.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1f51904..0cc82e9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -13,9 +13,11 @@ jobs: go-version: '1.21.x' - name: Install dependencies run: go get . + - name: Set up gotestfmt + run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest - name: Build run: go build -v ./... - name: Unit Tests - run: go test -v ./... + run: go test -v -race -coverprofile=cover.out ./... | gotestfmt - name: CLI Integration Tests - run: go test -v main_test.go + run: go test -v -race main_test.go | gotestfmt