From f107ce651524e7100bfcb24a0da3fc5a6b321a37 Mon Sep 17 00:00:00 2001 From: Doci Mou <22457019+dmou@users.noreply.github.com> Date: Tue, 5 Nov 2024 22:16:58 -0500 Subject: [PATCH] set proper path of resultset --- .github/workflows/ci-test-pr.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-test-pr.yml b/.github/workflows/ci-test-pr.yml index 7e198388..f257a74a 100644 --- a/.github/workflows/ci-test-pr.yml +++ b/.github/workflows/ci-test-pr.yml @@ -102,19 +102,18 @@ jobs: docker compose -f docker-test.yml exec -T pender cat tmp/performance.csv docker compose -f docker-test.yml exec -T pender ls -l coverage/ docker cp pender-pender-1:/app/pender/tmp/performance.csv performance.csv - docker cp pender-pender-1:/app/pender/coverage/.resultset.json .resultset.json + docker cp pender-pender-1:/app/pender/coverage/.resultset.json test/.resultset.json # pulled from test/test-coverage printf '#!/bin/bash\ngo run /tmp/go/src/github.com/codeclimate/test-reporter/main.go $@\n' > test/cc-test-reporter && chmod +x test/cc-test-reporter export GOPATH=/tmp/go - go env go env -w GO111MODULE=off mkdir -p /tmp/go/src/github.com/codeclimate git clone -b 0.10.3 https://github.com/codeclimate/test-reporter /tmp/go/src/github.com/codeclimate/test-reporter cd test GIT_COMMIT_SHA=$GIT_SHA GIT_COMMITTED_AT=$GIT_COMMITTED_AT ./cc-test-reporter format-coverage -t simplecov --output codeclimate.json .resultset.json cat codeclimate.json - # cat ../coverage/codeclimate.json | sed 's/\/app\///g' | ./cc-test-reporter upload-coverage -r $cc_test_reporter_id --input - + # cat codeclimate.json | sed 's/\/app\///g' | ./cc-test-reporter upload-coverage -r $cc_test_reporter_id --input - - name: Reset cache id: reset-cache