From 0d0271185f6963ed8f7b193942e1de1cb2febeee Mon Sep 17 00:00:00 2001 From: ucpr Date: Fri, 29 Dec 2023 02:05:10 +0900 Subject: [PATCH] ci: upload coverage to codeclimate --- .github/workflows/ci.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 670cbd3..ef5ed3c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -36,14 +36,14 @@ jobs: run: make build - uses: jandelgado/gcov2lcov-action@v1.0.9 - if: ${{ github.ref != 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' }} with: infile: coverage.out outfile: coverage.lcov version: v1.0.6 - name: Report coverage to CodeClimate - if: ${{ github.ref != 'refs/heads/main' }} + if: ${{ github.ref == 'refs/heads/main' }} uses: paambaati/codeclimate-action@v5.0.0 env: CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}