Skip to content

Commit

Permalink
set proper path of resultset
Browse files Browse the repository at this point in the history
  • Loading branch information
dmou committed Nov 6, 2024
1 parent 6b087d9 commit f107ce6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci-test-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f107ce6

Please sign in to comment.