mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-05-07 12:37:43 -05:00
[PR #201] [MERGED] Add E2E testing #581
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/RayLabsHQ/gitea-mirror/pull/201
Author: @Xyndra
Created: 2/28/2026
Status: ✅ Merged
Merged: 3/1/2026
Merged by: @arunavo4
Base:
main← Head:e2e-testing📝 Commits (10+)
1b8a38cfeat: add E2E testing infrastructure with fake GitHub, Playwright, and CI workflowf70babafeat: add real git repos + backup config testing to E2E suitea0197darefactor: split E2E tests into focused files + add force-push tests3efecbbTry to fix actions2c1e3a7Try to fix the other action10e9d22Add debug info to check why e2e action is failing7bbdf5fMore debug info4e71afbEven more debug infof914ae4E2E fix attempt [Feature Request] Prebuilt binaries (#1)c75c5f5E2E fix attempt [Feature Request] Run without redis (#2)📊 Changes
19 files changed (+5365 additions, -59 deletions)
View changed files
➕
.github/workflows/e2e-tests.yml(+281 -0)📝
.gitignore(+15 -0)📝
bun.lock(+22 -4)📝
bunfig.toml(+4 -1)📝
package.json(+7 -1)📝
src/lib/github.ts(+83 -52)📝
src/lib/repo-backup.ts(+7 -1)➕
tests/e2e/01-health.spec.ts(+77 -0)➕
tests/e2e/02-mirror-workflow.spec.ts(+344 -0)➕
tests/e2e/03-backup.spec.ts(+305 -0)➕
tests/e2e/04-force-push.spec.ts(+864 -0)➕
tests/e2e/05-sync-verification.spec.ts(+342 -0)➕
tests/e2e/cleanup.sh(+141 -0)➕
tests/e2e/create-test-repos.ts(+522 -0)➕
tests/e2e/docker-compose.e2e.yml(+105 -0)➕
tests/e2e/fake-github-server.ts(+1027 -0)➕
tests/e2e/helpers.ts(+666 -0)➕
tests/e2e/playwright.config.ts(+98 -0)➕
tests/e2e/run-e2e.sh(+455 -0)📄 Description
Add an automated end to end testing system using playwright, along with a custom system to control the API of gitea-mirror and a fake version of the GitHub API, as well as a docker image to fake some repositories.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.