1
0
Fork 0
mirror of https://code.forgejo.org/forgejo/runner.git synced 2025-09-15 18:57:01 +00:00

chore(tests): add mockery and instructions to use it (#651)

- Add the missing `make generate` target and the tool to make it work
- The release build process only depends on `make build` and not on any `make release*` target, remove them all

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/651
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: Earl Warren <contact@earl-warren.org>
Co-committed-by: Earl Warren <contact@earl-warren.org>
This commit is contained in:
Earl Warren 2025-07-03 16:41:05 +00:00 committed by earl-warren
parent 51e0bc0e53
commit 310335e6ab
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
2 changed files with 16 additions and 44 deletions

View file

@ -30,6 +30,13 @@ The Forgejo runner depends on [a fork of ACT](https://code.forgejo.org/forgejo/a
The [test workflow](.forgejo/workflows/test.yml) is a full example that builds the binary, runs the tests and launches the runner binary against a live Forgejo instance.
## Generate mocks
- `make deps-tools`
- `make generate`
If there are changes, commit them to the repository.
## Local debug
The repositories are checked out in the same directory: