From 645ec552bd3df6b2532ff61de7755847a504a941 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 31 Aug 2025 11:56:58 +0000 Subject: [PATCH] fix(test): fix CI Signed-off-by: Xe Iaso --- test/git-clone/test.sh | 9 +++------ test/git-push/test.sh | 9 +++------ test/healthcheck/test.sh | 8 ++------ 3 files changed, 8 insertions(+), 18 deletions(-) diff --git a/test/git-clone/test.sh b/test/git-clone/test.sh index 94ad6638..baa1fd55 100755 --- a/test/git-clone/test.sh +++ b/test/git-clone/test.sh @@ -7,12 +7,9 @@ export KO_DOCKER_REPO=ko.local set -u -( - cd ../.. && \ - npm ci && \ - npm run assets \ - ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L -) +source ../lib/lib.sh + +build_anubis_ko rm -rf ./var/repos ./var/clones mkdir -p ./var/repos ./var/clones diff --git a/test/git-push/test.sh b/test/git-push/test.sh index 35ed9fe3..f2ca29ce 100755 --- a/test/git-push/test.sh +++ b/test/git-push/test.sh @@ -7,12 +7,9 @@ export KO_DOCKER_REPO=ko.local set -u -( - cd ../.. && \ - npm ci && \ - npm run assets \ - ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L -) +source ../lib/lib.sh + +build_anubis_ko rm -rf ./var/repos ./var/foo mkdir -p ./var/repos diff --git a/test/healthcheck/test.sh b/test/healthcheck/test.sh index 33f0a19b..f1932d18 100755 --- a/test/healthcheck/test.sh +++ b/test/healthcheck/test.sh @@ -7,13 +7,9 @@ export KO_DOCKER_REPO=ko.local set -u -( - cd ../.. && \ - npm ci && \ - npm run assets \ - ko build --platform=all --base-import-paths --tags="latest" --image-user=1000 --image-annotation="" --image-label="" ./cmd/anubis -L -) +source ../lib/lib.sh +build_anubis_ko docker compose up -d attempt=1