test: verify CI pipeline
Some checks failed
Test CI / test (push) Failing after 36s

This commit is contained in:
Frank Fuentes 2026-04-24 11:47:24 -07:00
commit 4611dd02b6
4 changed files with 37 additions and 0 deletions

View file

@ -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 ./...

3
go.mod Normal file
View file

@ -0,0 +1,3 @@
module test-ci
go 1.13

11
main.go Normal file
View file

@ -0,0 +1,11 @@
package main
import "fmt"
func Greet() string {
return "Astraevum Forge is online"
}
func main() {
fmt.Println(Greet())
}

11
main_test.go Normal file
View file

@ -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)
}
}