Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Correct support for GitHub Actions #218

Merged
merged 9 commits into from
Oct 31, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion codecov
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ then
branch="${GITHUB_REF#refs/heads/}"
commit="${GITHUB_SHA}"
slug="${GITHUB_REPOSITORY}"
job="${GITHUB_ACTION}"

elif [ "$SYSTEM_TEAMFOUNDATIONSERVERURI" != "" ];
then
Expand Down Expand Up @@ -1611,4 +1612,4 @@ else
say " ${r}X> Failed to upload coverage reports${x}"
fi

exit ${exit_with}
exit ${exit_with}
1 change: 1 addition & 0 deletions env
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ then

elif [ "$GITHUB_ACTION" != '' ]
then
add "GITHUB_ACTION"
add "GITHUB_REF"
add "GITHUB_REPOSITORY"
add "GITHUB_SHA"
Expand Down
3 changes: 2 additions & 1 deletion tests/env
Original file line number Diff line number Diff line change
Expand Up @@ -108,4 +108,5 @@ export BITBUCKET_BRANCH=""
export BITBUCKET_BUILD_NUMBER=""
export BITBUCKET_REPO_OWNER=""
export BITBUCKET_REPO_SLUG=""
export BITBUCKET_PR_ID=""
export BITBUCKET_PR_ID=""
export GITHUB_ACTION=""
4 changes: 2 additions & 2 deletions tests/test
Original file line number Diff line number Diff line change
Expand Up @@ -316,10 +316,10 @@ function test_github_action () {
export GITHUB_REPOSITORY="codecov/ci-repo"
export GITHUB_SHA="$TEST_DATA_GIT_COMMIT"

assertURL "https://codecov.io/upload/v4?package=bash-tbd&token=&branch=master&commit=$TEST_DATA_GIT_COMMIT&build=&build_url=&name=&tag=&slug=codecov%2Fci-repo&service=github-actions&flags=&pr=&job="
assertURL "https://codecov.io/upload/v4?package=bash-$VERSION&token=&branch=master&commit=$TEST_DATA_GIT_COMMIT&build=&build_url=&name=&tag=&slug=codecov%2Fci-repo&service=github-actions&flags=&pr=&job=$GITHUB_ACTION"
}

semaphore (){
function test_semaphore (){
reset
export CI="true"
export SEMAPHORE="true"
Expand Down