golang: add a simple compilation test
authorGeorge Sapkin <redacted>
Thu, 7 May 2026 18:24:34 +0000 (21:24 +0300)
committerGeorge Sapkin <redacted>
Wed, 13 May 2026 21:24:08 +0000 (00:24 +0300)
Add a simple CI compilation test to ensure that the Go toolchain is
functional.

Signed-off-by: George Sapkin <redacted>
lang/golang/golang1.26/test.sh

index 09d3e3fcaf810775d03b8045b4c2686910bd49e1..023f3659deb1d6fb2a7737fab6ca62602141a4cb 100755 (executable)
@@ -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
git clone https://git.99rst.org/PROJECT