golang: add a simple compilation test

Add a simple CI compilation test to ensure that the Go toolchain is
functional.

Signed-off-by: George Sapkin <george@sapk.in>
This commit is contained in:
George Sapkin
2026-05-07 21:24:34 +03:00
parent 13dfad0879
commit d9fdda8cf2
+14
View File
@@ -7,3 +7,17 @@ case "$1" in
esac
go version | grep -F " go$PKG_VERSION "
cat <<'EOF' > hello.go
package main
import "fmt"
func main() {
fmt.Println("Hello, World!")
}
EOF
go run hello.go
rm hello.go