env conf ylimääräinen value pois
CI / load-config (push) Successful in 12s
ci-cucumber Cucumber tests passed
ci-bats Bats tests
ci-build Build complete
CI / feature (push) Successful in 2m21s
CI / main (push) Has been skipped

This commit is contained in:
moilanik
2026-06-13 19:58:06 +03:00
parent 7b99392dd7
commit 09da2a7f28
13 changed files with 52 additions and 52 deletions
+4 -12
View File
@@ -3,8 +3,7 @@
setup() {
export GITEA_API_URL="http://localhost:18080"
export GITEA_TOKEN="test-token-abc"
export PAGES_HOST="reports.example.com"
export GIT_PAGES_PUBLISH_URL="http://localhost:18080/"
export GIT_PAGES_URL="http://localhost:18080"
export GIT_PAGES_PUBLISH_TOKEN="publish-token-abc"
export GITHUB_REPOSITORY="test-owner/test-repo"
export GITHUB_SHA="abc123def456789012345678901234567890abcd"
@@ -30,18 +29,11 @@ setup() {
[[ "$output" == *"GITEA_TOKEN"* ]]
}
@test "missing PAGES_HOST → exit 1" {
unset PAGES_HOST
@test "missing GIT_PAGES_URL → exit 1" {
unset GIT_PAGES_URL
run bash scripts/publish.sh "unit-tests"
[ "$status" -eq 1 ]
[[ "$output" == *"PAGES_HOST"* ]]
}
@test "missing GIT_PAGES_PUBLISH_URL → exit 1" {
unset GIT_PAGES_PUBLISH_URL
run bash scripts/publish.sh "unit-tests"
[ "$status" -eq 1 ]
[[ "$output" == *"GIT_PAGES_PUBLISH_URL"* ]]
[[ "$output" == *"GIT_PAGES_URL"* ]]
}
@test "missing GIT_PAGES_PUBLISH_TOKEN → exit 1" {