Skip to content

add proxy test

add proxy test #12

Workflow file for this run

name: ci
on:
push:
pull_request:
jobs:
proxy-rules:
# arm64 runner: the Dockerfile pulls arm64 pandoc/node tarballs.
runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v4
- name: Test proxy
run: |
make prepare-env
make prepare-ssh GIT_USERNAME='ci-bot' GIT_EMAIL='ci@example.com'
make build
make up
for i in $(seq 1 30); do
if docker compose exec -T workspace \
curl -s -o /dev/null -x http://proxy:3128 https://github.com; then
echo "proxy ready after ${i}s"
break
fi
if [ "$i" -eq 30 ]; then
echo "proxy did not become ready in 30s" >&2
docker compose logs proxy
exit 1
fi
sleep 1
done
docker compose exec -T workspace chown -R root:root /root/.ssh /root/.gitconfig
make test