This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/docs/guides/1229-go-ci.md
Tanguy ⧓ Herrmann ab21b1b7be
docs: add to the sidebar
Signed-off-by: Tanguy ⧓ Herrmann <tanguy@dagger.io>
2022-04-14 16:21:00 +02:00

908 B

slug displayed_sidebar
/1229/go-ci 0.2

Testing and building a Go project

This guide explains how to run some tests and build a Go project with the go cue package.

Plan

The plan consist of 2 actions:

  • test for go test
  • build for go build

both use the Go dagger package

Go project

The project is a simple program that takes $NAME environment variable, use the Go greeting package to print the greeting.Greeting() out.