Files
varde/.gitea/workflows/ci.yml
T
Bendik LynghaugandClaude Fable 5 b53b5cc000
ci / quality (push) Failing after 3m0s
Bound every await in push_to; plain-git checkout for real this time
CI (run 208) showed the Push RPC hanging past the test client's 120s
read timeout: endpoint.connect and the delivery-verification observe
loop had no bounds, so a wedged path hung the socket instead of
failing. Connect now times out at 30s and each observe step at 60s,
producing structured errors that name the stage.

The checkout action is back out: run 212 proved the failure is not the
action's version — the runner execs the action's JS with node inside
the job container, and rust:1 has no node ('exec: "node": executable
file not found'). Plain git needs nothing the container lacks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-16 15:39:58 +02:00

36 lines
1.1 KiB
YAML

# Gitea Actions mirror of the Woodpecker quality bar (.ci/woodpecker.yaml):
# fmt, clippy -D warnings, full test suite.
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
quality:
runs-on: ubuntu-latest
container: rust:1
steps:
# Not the checkout action: it runs on node, which the rust:1 job
# container doesn't have and this runner doesn't inject (the v5
# run died with 'exec: "node": not found'). Plain git needs
# neither, and the token URL works against the private repo.
- name: checkout
run: |
git init -q .
git fetch --depth 1 \
"https://gitea:${{ secrets.GITHUB_TOKEN }}@${GITHUB_SERVER_URL#https://}/${GITHUB_REPOSITORY}.git" \
"$GITHUB_SHA"
git checkout -q FETCH_HEAD
- name: rustfmt
run: |
rustup component add rustfmt
cargo fmt --all --check
- name: clippy
run: |
rustup component add clippy
cargo clippy --workspace --all-targets -- -D warnings
- name: test
run: cargo test --workspace