From c1427ecbc8994a93cfb06752fd4e810fcf5e0a9f Mon Sep 17 00:00:00 2001 From: kan <25264536+kanlac@users.noreply.github.com> Date: Wed, 19 Jun 2024 21:21:56 +0800 Subject: [PATCH] add e2e test --- .github/workflows/e2e.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/e2e.yaml b/.github/workflows/e2e.yaml index 571ab2ee9..fae595159 100644 --- a/.github/workflows/e2e.yaml +++ b/.github/workflows/e2e.yaml @@ -63,6 +63,8 @@ jobs: echo platform is ${PLATFORM} # Build and run the ko binary, which should be runnable. docker run $(go run ./ build ./ --platform=${PLATFORM} --preserve-import-paths) version + # Build and run the ko binary with the scratch base image, which should be runnable. + docker run $(KO_DEFAULTBASEIMAGE=scratch go run ./ build ./ --platform=${PLATFORM} --preserve-import-paths) version # Build and run the test/ binary, which should log "Hello there" served from KO_DATA_PATH testimg=$(go run ./ build ./test --platform=${PLATFORM} --preserve-import-paths)