ci(main): add Go test and build workflow
ci / test (push) Failing after 45s

This commit is contained in:
Story Crater Bot
2026-08-21 21:23:40 -07:00
parent 5b8d3df01e
commit 30a7f4fec6
+30
View File
@@ -0,0 +1,30 @@
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
test:
runs-on: golang
container:
image: golang:1.25
env:
GOPRIVATE: forgejo.riotpiao.com
GOFLAGS: -mod=readonly
GITHUB_TOKEN: ${{ secrets.REGISTRY_PAT }}
steps:
- uses: actions/checkout@v4
- name: Download dependencies
run: go mod download
- name: Test
run: go test -v ./...
- name: Build
run: go build -o /tmp/poimen-workflows ./cmd/...
- name: Vet
run: go vet ./...