Add CI/CD workflows for build and release
Some checks are pending
CI / build (push) Waiting to run
Release / release (push) Successful in 7m41s

- Add CI workflow for build/test on push and PR
- Add release workflow to create releases on tags

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-10 05:00:06 -05:00
parent 40c7487409
commit 372fd8fdc5
2 changed files with 55 additions and 0 deletions

27
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,27 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build
run: go build ./...
env:
GOPRIVATE: git.marketally.com
- name: Test
run: go test ./...
env:
GOPRIVATE: git.marketally.com

View File

@@ -0,0 +1,28 @@
name: Release
on:
push:
tags:
- 'v*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Build
run: go build ./...
env:
GOPRIVATE: git.marketally.com
- name: Create Release
uses: softprops/action-gh-release@v1
with:
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}