From 4292b44009e888be41a4b37f2b803b5b988e190c Mon Sep 17 00:00:00 2001 From: chinelo-obitube Date: Sun, 21 Jul 2024 09:10:48 +0100 Subject: [PATCH] rewrite coverage --- .github/workflows/test.yml | 2 ++ test/test-coverage.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6c2af60dfb..4c723868d9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -145,4 +145,6 @@ jobs: -e GITHUB_JOB_NAME=$GITHUB_JOB_NAME \ -e AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID \ -e AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY \ + -e ROLE_TO_ASSUME=$AWS_ROLE_TO_ASSUME \ + -e AWS_REGION=$AWS_REGION \ -e AWS_CONFIG_FILE=/app/credentials api test/test-coverage.sh \ No newline at end of file diff --git a/test/test-coverage.sh b/test/test-coverage.sh index bf41fb86ce..4b4cac311b 100755 --- a/test/test-coverage.sh +++ b/test/test-coverage.sh @@ -9,7 +9,7 @@ git clone -b 0.10.3 https://github.com/codeclimate/test-reporter /tmp/go/src/git cd /tmp/go/src/github.com/codeclimate/test-reporter go mod init github.com/codeclimate/test-reporter go mod tidy -apt-get install -y awscli +apt install -y awscli cd - ./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/$GITHUB_REPO_SLUG/$GITHUB_BUILD_NUMBER/codeclimate.$GITHUB_JOB_NAME.json