Skip to content

Commit

Permalink
Add e2e test that ko image includes go
Browse files Browse the repository at this point in the history
  • Loading branch information
imjasonh committed Dec 13, 2021
1 parent 62f5e85 commit 06dc958
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,11 @@ jobs:
fi
echo platform is ${GOOS}/${GOARCH}
# Build and run the ko binary, which should be runnable.
docker run $(go run ./ publish ./ --platform=${GOOS}/${GOARCH} --osversion=${OSVERSION} --preserve-import-paths) version
# Build and run the ko binary, which should be runnable, and include the go toolchain.
img=$(go run ./ publish ./ --platform=${GOOS}/${GOARCH} --osversion=${OSVERSION} --preserve-import-paths)
docker run ${img} version
docker run --entrypoint go ${img} version
# Build and run the test/ binary, which should log "Hello there" served from KO_DATA_PATH
testimg=$(go run ./ publish ./test --platform=${GOOS}/${GOARCH} --preserve-import-paths)
Expand Down

0 comments on commit 06dc958

Please sign in to comment.