tercul-backend/.gitea/workflows/build.yml
Damir Mukimov ad749d9184
Some checks failed
Test / Unit Tests (push) Failing after 1m20s
Build / Build Binary (push) Failing after 2m32s
Docker Build / Build Docker Image (push) Failing after 2m37s
Test / Integration Tests (push) Successful in 4s
Lint / Go Lint (push) Failing after 18m28s
Add Gitea Actions workflows for CI/CD
2025-12-24 23:27:45 +01:00

47 lines
992 B
YAML

name: Build
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build-binary:
name: Build Binary
runs-on: ubuntu-latest
permissions:
contents: read
attestations: write
id-token: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.25"
cache: true
- name: Install dependencies
run: go mod download
- name: Verify dependencies
run: go mod verify
- name: Build application
run: |
go build -v -o bin/tercul-backend ./cmd/api
ls -la bin/
- name: Test binary
run: ./bin/tercul-backend --help || echo "Binary built successfully"
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: tercul-backend-binary
path: bin/
retention-days: 30