ci: add clean up command for integration tests

This commit is contained in:
Stefan Hausotte 2026-03-08 18:24:07 +01:00
parent ac49851639
commit d5e7ccdc4d

View file

@ -64,6 +64,13 @@ docker-down:
docker compose -f {{compose_file}} down -v 2>/dev/null || true
rm -f /tmp/forgejo_test_url.txt /tmp/forgejo_test_url_*.txt
# Clear integration test caches (seed snapshots, temp files)
clean-integration:
rm -f integration/.forgejo-seed-snapshot.tar.gz integration/.forgejo-seed-hash
rm -f /tmp/forgejo_test_url.txt /tmp/forgejo_test_url_*.txt
rm -f /tmp/forgejo_test_token.txt /tmp/forgejo_test_token_*.txt
@echo "Integration test caches cleared."
# Seed test data into Forgejo instances (with snapshot caching)
seed:
#!/usr/bin/env bash