From a620c9ea7382d33cd5e25a173af9ea72ed3adc91 Mon Sep 17 00:00:00 2001 From: chinelo-obitube Date: Sun, 21 Jul 2024 01:13:57 +0100 Subject: [PATCH] rewrite coverage --- .github/workflows/ci-tests.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index bdc7953c72..45a3cb8931 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -304,13 +304,11 @@ jobs: sudo apt-get install -y golang-go golang-glide sudo mkdir -p /tmp/go/src/github.com/codeclimate sudo git clone -b 0.10.3 https://github.com/codeclimate/test-reporter /tmp/go/src/github.com/codeclimate/test-reporter - printf '#!/bin/bash\n' > test/cc-test-reporter - printf 'go run /tmp/go/src/github.com/codeclimate/test-reporter/main.go $@\n' >> test/cc-test-reporter - chmod +x test/cc-test-reporter + 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 ./test/cc-test-reporter format-coverage -t simplecov --output ../coverage/codeclimate.$GITHUB_JOB_NAME.json ../coverage/.resultset.json aws s3 cp ..coverage/codeclimate.GITHUB_JOB_NAME.json s3://check-api-travis/codeclimate/coverage/codeclimate.GITHUB_JOB_NAME.json - + - uses: actions/upload-artifact@v2 with: name: coverage-${{ matrix.ruby }}