Skip to content

Commit 4b3cf2d

Browse files
Michael Vasseurvmcj
authored andcommitted
Clean some unneeded code for GHA
GitLab couldn't push statuses directly but GHA will.
1 parent 8e99b22 commit 4b3cf2d

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

.github/jobs/unit-tests.sh

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,6 @@ if [ $CODECOVERAGE -eq 1 ]; then
4848
else
4949
STATE=failure
5050
fi
51-
ORIGINAL="gitlab.com/DOMjudge"
52-
REPLACETO="domjudge.gitlab.io/-"
53-
# Copied from CCS
54-
curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \
55-
-X POST \
56-
-H "Authorization: token $GH_BOT_TOKEN_OBSCURED" \
57-
-H "Accept: application/vnd.github.v3+json" \
58-
-d "{\"state\": \"$STATE\", \"target_url\": \"${CI_JOB_URL/$ORIGINAL/$REPLACETO}/artifacts/$FILE\", \"description\":\"Symfony deprecations ($version)\", \"context\": \"Symfony deprecation ($version)\"}"
5951
fi
6052
if [ $UNITSUCCESS -eq 0 ]; then
6153
STATE=success
@@ -64,11 +56,6 @@ else
6456
fi
6557
cp webapp/var/log/test.log "$ARTIFACTS"/test.log
6658

67-
curl https://api.github.com/repos/domjudge/domjudge/statuses/$CI_COMMIT_SHA \
68-
-X POST \
69-
-H "Authorization: token $GH_BOT_TOKEN_OBSCURED" \
70-
-H "Accept: application/vnd.github.v3+json" \
71-
-d "{\"state\": \"$STATE\", \"target_url\": \"${CI_PIPELINE_URL}/test_report\", \"description\":\"Unit tests\", \"context\": \"unit_tests ($version)\"}"
7259
if [ $UNITSUCCESS -ne 0 ] || [ $CNT -gt $THRESHOLD ]; then
7360
exit 1
7461
fi

0 commit comments

Comments
 (0)