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/1228-go-ci.md
Tanguy ⧓ Herrmann ebec01e8e6
docs: fix some PR suggestions
Signed-off-by: Tanguy ⧓ Herrmann <tanguy@dagger.io>
2022-04-14 16:16:16 +02:00

908 B

slug displayed_sidebar
/1228/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.