Skip to content

Commit

Permalink
rewrite coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
chinelo-obitube authored and chinelo-obitube committed Jul 21, 2024
1 parent 3c6497c commit 4292b44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion test/test-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4292b44

Please sign in to comment.