From 4611dd02b61cc148f69c31ad6a3227645bd6df6a Mon Sep 17 00:00:00 2001 From: Frank Fuentes Date: Fri, 24 Apr 2026 11:47:24 -0700 Subject: [PATCH] test: verify CI pipeline --- .forgejo/workflows/ci.yaml | 12 ++++++++++++ go.mod | 3 +++ main.go | 11 +++++++++++ main_test.go | 11 +++++++++++ 4 files changed, 37 insertions(+) create mode 100644 .forgejo/workflows/ci.yaml create mode 100644 go.mod create mode 100644 main.go create mode 100644 main_test.go 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) + } +}