Files
backend/.gitea/workflows/ci.yml
Andriy Oblivantsev ea59a92b02
CI / test (push) Failing after 4s
Fix CI repository URL format for manual checkout.
Use the self-hosted repository URL without the .git suffix so authenticated fetch resolves correctly in the Gitea runner.

Made-with: Cursor
2026-03-01 11:46:41 +00:00

41 lines
929 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout (manual for self-hosted TLS)
run: |
rm -rf .git
git init .
git remote add origin "https://oauth2:${{ github.token }}@git.produktor.io/${{ github.repository }}"
git -c http.sslVerify=false fetch --depth=1 origin "${{ github.sha }}"
git checkout --detach FETCH_HEAD
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: "1.25.x"
- name: Go tests
run: go test ./...
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Bun install
working-directory: libs/geo-api-client
run: bun install
- name: Bun tests
working-directory: libs/geo-api-client
run: bun test