Files
backend/.gitea/workflows/ci.yml
Andriy Oblivantsev 5897b700fb
CI / test (push) Failing after 4s
Remove ip-route dependency from adaptive CI checkout.
Keep URL probing compatible with minimal runner images by dropping gateway discovery and checking known internal/external repository endpoints directly.

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

58 lines
1.5 KiB
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout source (adaptive)
run: |
set -euo pipefail
CANDIDATES="
http://gitea:3000/${{ github.repository }}
http://host.docker.internal:3000/${{ github.repository }}
https://git.produktor.io/${{ github.repository }}
https://git.produktor.io/${{ github.repository }}.git
"
REPO_URL=""
for URL in ${CANDIDATES}; do
if git -c http.sslVerify=false ls-remote "${URL}" >/dev/null 2>&1; then
REPO_URL="${URL}"
break
fi
done
test -n "${REPO_URL}"
echo "Using repo URL: ${REPO_URL}"
rm -rf .git
git init .
git remote add origin "${REPO_URL}"
git -c http.sslVerify=false fetch --depth=1 origin "${{ github.sha }}"
git checkout --detach FETCH_HEAD
test -f go.mod
- 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