commit 4611dd02b61cc148f69c31ad6a3227645bd6df6a Author: Frank Fuentes Date: Fri Apr 24 11:47:24 2026 -0700 test: verify CI pipeline diff --git a/.forgejo/workflows/ci.yaml b/.forgejo/workflows/ci.yaml new file mode 100644 index 0000000..1a70f37 --- /dev/null +++ b/.forgejo/workflows/ci.yaml @@ -0,0 +1,12 @@ +name: Test CI + +on: [push] + +jobs: + test: + runs-on: docker + container: + image: golang:1.23-bookworm + steps: + - uses: https://code.forgejo.org/actions/checkout@v4 + - run: go test -v ./... diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..117df86 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module test-ci + +go 1.13 diff --git a/main.go b/main.go new file mode 100644 index 0000000..93e05d1 --- /dev/null +++ b/main.go @@ -0,0 +1,11 @@ +package main + +import "fmt" + +func Greet() string { + return "Astraevum Forge is online" +} + +func main() { + fmt.Println(Greet()) +} diff --git a/main_test.go b/main_test.go new file mode 100644 index 0000000..28f0de2 --- /dev/null +++ b/main_test.go @@ -0,0 +1,11 @@ +package main + +import "testing" + +func TestGreet(t *testing.T) { + got := Greet() + want := "Astraevum Forge is online" + if got != want { + t.Errorf("got %q, want %q", got, want) + } +}