docs: update README and CI workflow to clarify Docker workspace mounting for bird2 job
CI / changes (push) Successful in 5s
CI / go (push) Successful in 19s
CI / openapi (push) Has been skipped
CI / bird2 (push) Failing after 18s

This commit is contained in:
Denozordec
2026-04-04 01:35:32 +07:00
parent 3adfc49e5c
commit 6be46dbbed
2 changed files with 12 additions and 2 deletions
+11 -1
View File
@@ -87,13 +87,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: bird -p on all scenario bird.conf files
env:
WORKSPACE: ${{ github.workspace }}
run: |
set -euxo pipefail
# $PWD на act/Gitea runner не всегда корень репозитория; монтируем именно checkout.
WS="${WORKSPACE:-$PWD}"
cd "$WS"
if [ ! -f internal/birdfmt/testdata/scenarios/minimal/bird.conf ]; then
echo "Нет сценариев BIRD в checkout. Проверьте, что internal/birdfmt/testdata/scenarios закоммичен и push в remote."
ls -la internal/birdfmt/testdata/ 2>/dev/null || ls -la
exit 1
fi
for conf in internal/birdfmt/testdata/scenarios/*/bird.conf; do
echo "==> $conf"
docker run --rm \
-e "BIRD_CONF=/work/${conf}" \
-v "$PWD:/work:ro" \
-v "${WS}:/work:ro" \
debian:bookworm-slim \
bash -ceu 'apt-get update -qq && DEBIAN_FRONTEND=noninteractive apt-get install -y -qq bird2 >/dev/null && bird -c "$BIRD_CONF" -p'
done