butterrobot/.github/workflows/ci.yml
Felipe M. 63d63d7a3b
All checks were successful
CI / goreleaser-lint (push) Successful in 7s
CI / format (push) Successful in 1m11s
CI / test (push) Successful in 1m42s
CI / lint (push) Successful in 2m48s
CI / build (push) Successful in 3m2s
ci: migrate from Woodpecker to Forgejo Actions and modernize build setup (#1)
- Replace Woodpecker CI with Forgejo Actions workflows (ci.yml, release.yml)
- Add goreleaser-lint and build jobs to CI pipeline
- Simplify Makefile to match current project conventions
- Update Containerfile with multi-stage Alpine build for ca-certs, tzdata, and non-root user
- Use .Tag for docker image templates and enable latest manifest
- Add explicit release.gitea config to goreleaser

Reviewed-on: #1
Co-authored-by: Felipe M. <me@fmartingr.com>
Co-committed-by: Felipe M. <me@fmartingr.com>
2026-04-08 10:50:27 +02:00

58 lines
1.3 KiB
YAML

name: CI
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
format:
runs-on: docker
container: git.nakama.town/fmartingr/ci-images/ci-base:1.0.0
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: make format
- run: git diff --exit-code
goreleaser-lint:
runs-on: docker
container: git.nakama.town/fmartingr/ci-images/ci-base:1.0.0
steps:
- uses: actions/checkout@v6
- uses: actions/goreleaser-action@v6.4.0
with:
args: check
lint:
runs-on: docker
container: git.nakama.town/fmartingr/ci-images/ci-base:1.0.0
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: make ci-lint
test:
runs-on: docker
container: git.nakama.town/fmartingr/ci-images/ci-base:1.0.0
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: make test
build:
runs-on: docker
container: git.nakama.town/fmartingr/ci-images/ci-base:1.0.0
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: go.mod
- run: make build