Files
backend/.gitea/workflows/ci.yml
Andriy Oblivantsev 08d47eb6dc
CI / test (push) Failing after 5s
Work around self-hosted TLS in CI checkout step.
Replace actions/checkout with a manual git fetch using sslVerify=false so the runner can clone from the self-hosted Gitea endpoint and continue pipeline execution.

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

41 lines
933 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"
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