No description
  • Go 86.5%
  • Dockerfile 13.5%
Find a file
Simon Nordberg 2b9a50abbb
All checks were successful
CI / test (push) Successful in 9s
CI / build (push) Successful in 59s
fix: make the smoke test clean up and actually fail (#6)
2026-08-03 08:09:54 +00:00
.github/workflows fix: make the smoke test clean up and actually fail (#6) 2026-08-03 08:09:54 +00:00
Dockerfile ci: run from .github/workflows on ubuntu-latest (#1) 2026-08-03 08:02:34 +00:00
go.mod ci: run from .github/workflows on ubuntu-latest (#1) 2026-08-03 08:02:34 +00:00
main.go feat: add go vet and go test to CI (#2) 2026-06-10 11:12:20 +00:00
main_test.go feat: add go vet and go test to CI (#2) 2026-06-10 11:12:20 +00:00
README.md ci: run from .github/workflows on ubuntu-latest (#1) 2026-08-03 08:02:34 +00:00

Go

A minimal Go HTTP service with tests and a multi-stage Docker build.

CI workflow

The workflow lives at .github/workflows/ci.yml and declares runs-on: ubuntu-latest. Both are GitHub defaults, unchanged. Nothing in this repository was renamed or rewritten to run here:

  • .github/workflows/ is read directly. There is no .forgejo/ directory.
  • ubuntu-latest routes to a Codebahn runner in Paris.
  • actions/checkout and actions/setup-go resolve from GitHub automatically.

On every push and pull request:

  1. Runs go vet and go test
  2. Builds the Docker image
  3. Starts the container and verifies /health responds

Uncomment the push steps in ci.yml to ship images to the built-in container registry. The job token authenticates automatically, so there are no secrets to configure.

Need more than the 3 GB default? Set runs-on: codebahn-medium for 7 GB. See CI runners.

Run locally

go test ./...
go run main.go
# or
docker build -t myapp . && docker run -p 8080:8080 myapp