test(e2e): cover the register/daemon CLI and failing jobs (#1346)

The e2e suite started the runner in-process and never exercised failing jobs. This adds a scenario that builds the binary and drives `register` then `daemon` against the Gitea fixture, and one for failed, skipped, continue-on-error and timed-out jobs.

Verified locally against gitea/gitea:main-nightly.

Assisted-by: Codet:codet
Reviewed-on: https://gitea.com/gitea/runner/pulls/1346
Reviewed-by: Zettat123 <[email protected]>
This commit is contained in:
Lunny Xiao committed 2026-10-27 21:23:59 +00:00
1 parent 3dbed63f55
commit a76ccd7020
6 files changed
+236

No files matched your search

+2
View File
@@ -32,6 +32,8 @@ func TestCompatibility(t *testing.T) {
t.Run("builtin_checkout", testBuiltinCheckout)
t.Run("moving_action_ref", testMovingActionRef)
t.Run("ephemeral", testEphemeralRunner)
t.Run("failure_paths", testFailurePaths)
t.Run("cli_register_daemon", testCLIRegisterDaemon)
t.Run("kubernetes", testKubernetes)
}