runner/internal/app/cmd
Earl Warren 89f37985bd
feat: validate --directory alternative to --repository to not clone (#1008)
Resolves forgejo/forgejo-actions-feature-requests#51

---

Note to reviewers: while working on fixing the exit status of the validate command, a border case was discovered when using `--clonedir . --repository .` by which it will not find an `action.yml` file at the root of the directory. It will be easier to fix and test using a `--directory` option designed to use a pre-existing directory instead because it is not a border case but the most common case really.

<!--start release-notes-assistant-->
<!--URL:https://code.forgejo.org/forgejo/runner-->
- features
  - [PR](https://code.forgejo.org/forgejo/runner/pulls/1008): <!--number 1008 --><!--line 0 --><!--description ZmVhdDogdmFsaWRhdGUgLS1kaXJlY3RvcnkgYWx0ZXJuYXRpdmUgdG8gLS1yZXBvc2l0b3J5IHRvIG5vdCBjbG9uZQ==-->feat: validate --directory alternative to --repository to not clone<!--description-->
<!--end release-notes-assistant-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1008
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
2025-09-17 16:40:31 +00:00
..
testdata/validate feat: validate --directory alternative to --repository to not clone (#1008) 2025-09-17 16:40:31 +00:00
cache-server.go feat: cache-server: shutdown on TERM 2025-09-05 17:25:51 +02:00
cmd.go refactor: split runDaemon into testable lambdas 2025-09-07 13:51:58 -06:00
create-runner-file.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
create-runner-file_test.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
daemon.go fix: use a fixed runner name for old (<= v1.20) Forgejo instances (#972) 2025-09-10 16:06:48 +00:00
daemon_test.go test: add TestRunDaemonGracefulShutdown 2025-09-07 14:00:55 -06:00
exec.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
job.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
main_test.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
register.go chore: bump version to v11 (#940) 2025-09-05 07:29:38 +00:00
register_test.go feat: fail when using an invalid label during non interactive registration (#647) 2025-08-16 17:59:20 +00:00
validate.go feat: validate --directory alternative to --repository to not clone (#1008) 2025-09-17 16:40:31 +00:00
validate_test.go feat: validate --directory alternative to --repository to not clone (#1008) 2025-09-17 16:40:31 +00:00