From 79bcb78818b305919c5f001ec857fe9d7e037924 Mon Sep 17 00:00:00 2001 From: Kazuyoshi Kato Date: Tue, 22 Feb 2022 18:05:30 +0000 Subject: [PATCH] Enable Codecov again We have lost Codecov since #101. While the main containerd repository doesn't have that, ttrpc could have Codecov without much complications. Signed-off-by: Kazuyoshi Kato --- .github/workflows/ci.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4902d1cda..b650f0c40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -84,7 +84,13 @@ jobs: - name: Test working-directory: src/github.com/containerd/ttrpc run: | - go test -v -race ./... + go test -v -race -coverprofile=coverage_txt -covermode=atomic ./... + + - name: Code Coverage + uses: codecov/codecov-action@v2 + with: + files: coverage_txt + if: matrix.os == 'ubuntu-latest' # # Run Protobuild