Skip to content

Commit 3db0e05

Browse files
kanlacKan
authored and
Kan
committed
add e2e test
1 parent 4591a2b commit 3db0e05

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

.github/workflows/e2e.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ jobs:
6363
echo platform is ${PLATFORM}
6464
# Build and run the ko binary, which should be runnable.
6565
docker run $(go run ./ build ./ --platform=${PLATFORM} --preserve-import-paths) version
66+
# Build and run the ko binary with the scratch base image, which should be runnable.
67+
docker run $(KO_DEFAULTBASEIMAGE=scratch go run ./ build ./ --platform=${PLATFORM} --preserve-import-paths) version
6668
6769
# Build and run the test/ binary, which should log "Hello there" served from KO_DATA_PATH
6870
testimg=$(go run ./ build ./test --platform=${PLATFORM} --preserve-import-paths)

pkg/build/scratch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 ko Build Authors All Rights Reserved.
1+
// Copyright 2024 ko Build Authors All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

pkg/build/scratch_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2023 ko Build Authors All Rights Reserved.
1+
// Copyright 2024 ko Build Authors All Rights Reserved.
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)