This PR contains the following updates: | Package | Change | Age | Confidence | |---|---|---|---| | [github.com/vektra/mockery/v2](https://github.com/vektra/mockery) | `v2.26.1` -> `v2.53.4` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>vektra/mockery (github.com/vektra/mockery/v2)</summary> ### [`v2.53.4`](https://github.com/vektra/mockery/releases/tag/v2.53.4) [Compare Source](https://github.com/vektra/mockery/compare/v2.53.3...v2.53.4) #### What's Changed - v2: Add k8s as user of mockery by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/965 - Bump golang.org/x/net from 0.33.0 to 0.36.0 in /tools by [@​dependabot](https://github.com/dependabot) in https://github.com/vektra/mockery/pull/947 - v2: Update release and docs for v3 GA by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/984 - Fix CICD for master->v2 branch rename. by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/996 - Fix v2 docs javascript for installation command by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1040 - v2: Fix go.work.sum for tagging command by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/1050 **Full Changelog**: https://github.com/vektra/mockery/compare/v2.53.3...v2.53.4 ### [`v2.53.3`](https://github.com/vektra/mockery/releases/tag/v2.53.3) [Compare Source](https://github.com/vektra/mockery/compare/v2.53.2...v2.53.3) #### What's Changed - Move to `docker/login-action@v3` by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/944 - Fix documentation CI workflow by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/945 - Remove redundant typecheck linter by [@​alexandear](https://github.com/alexandear) in https://github.com/vektra/mockery/pull/948 - Bump viper for remove hashicorp dependencies by [@​RainbowMango](https://github.com/RainbowMango) in https://github.com/vektra/mockery/pull/951 #### New Contributors - [@​RainbowMango](https://github.com/RainbowMango) made their first contribution in https://github.com/vektra/mockery/pull/951 **Full Changelog**: https://github.com/vektra/mockery/compare/v2.53.2...v2.53.3 ### [`v2.53.2`](https://github.com/vektra/mockery/releases/tag/v2.53.2) [Compare Source](https://github.com/vektra/mockery/compare/v2.53.1...v2.53.2) #### What's Changed - Build Go binary with 1.24 by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/943 **Full Changelog**: https://github.com/vektra/mockery/compare/v2.53.1...v2.53.2 ### [`v2.53.1`](https://github.com/vektra/mockery/releases/tag/v2.53.1) [Compare Source](https://github.com/vektra/mockery/compare/v2.53.0...v2.53.1) #### What's Changed - Fix profiling by [@​mat007](https://github.com/mat007) in https://github.com/vektra/mockery/pull/926 - fix: include-auto-generated option to work with multi-line comment by [@​hpurmann](https://github.com/hpurmann) in https://github.com/vektra/mockery/pull/940 - Revert to Go 1.23 in go.mod by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/941 #### New Contributors - [@​mat007](https://github.com/mat007) made their first contribution in https://github.com/vektra/mockery/pull/926 - [@​hpurmann](https://github.com/hpurmann) made their first contribution in https://github.com/vektra/mockery/pull/940 **Full Changelog**: https://github.com/vektra/mockery/compare/v2.53.0...v2.53.1 ### [`v2.53.0`](https://github.com/vektra/mockery/releases/tag/v2.53.0) [Compare Source](https://github.com/vektra/mockery/compare/v2.52.4...v2.53.0) #### What's Changed - Remove homebrew tap by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/933 - feat(`fail-on-missing`): Allow mockery to return non-zero on missing interfaces by [@​LandonTClipp](https://github.com/LandonTClipp) in https://github.com/vektra/mockery/pull/934 **Full Changelog**: https://github.com/vektra/mockery/compare/v2.52.4...v2.53.0 ### [`v2.52.4`](https://github.com/vektra/mockery/releases/tag/v2.52.4) [Compare Source](https://github.com/vektra/mockery/compare/v2.52.3...v2.52.4) #### Changelog - [`0c0f6fc`]( |
||
---|---|---|
.forgejo | ||
.github/workflows | ||
contrib | ||
examples | ||
internal | ||
scripts | ||
.dockerignore | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.golangci.yml | ||
build.go | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE | ||
main.go | ||
Makefile | ||
README.md | ||
RELEASE-NOTES.md | ||
renovate.json |
Forgejo Runner
WARNING: this is alpha release quality code and should not be considered secure enough to deploy in production.
A daemon that connects to a Forgejo instance and runs jobs for continuous integration. The installation and usage instructions are part of the Forgejo documentation.
Reporting bugs
When filing a bug in the issue tracker, it is very helpful to propose a pull request in the end-to-end tests repository that adds a reproducer. It will fail the CI and unambiguously demonstrate that the problem exists. In most cases it is enough to add a workflow (see the echo example). For more complicated cases it is also possible to add a runner config file as well as shell scripts to setup and teardown the test case (see the service example).
Architectures & OS
The Forgejo runner is supported and tested on amd64
and arm64
(binaries and containers) on Operating Systems based on the Linux kernel.
Work may be in progress for other architectures and you can browse the corresponding issues to figure out how they make progress. If you are interested in helping them move forward, open an issue. The most challenging part is to setup and maintain a native runner long term. Once it is supported by Forgejo, the runner is expected to be available 24/7 which can be challenging. Otherwise debugging any architecture specific problem won't be possible.
Hacking
The Forgejo runner depends on a fork of ACT and is a dependency of the setup-forgejo action. See the full dependency graph for a global view.
Building
- Install Go and
make(1)
make build
The test workflow 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:
- runner: Forgejo runner
- act: ACT
- setup-forgejo: setup-forgejo
Install dependencies
The dependencies are installed manually or with:
setup-forgejo/forgejo-dependencies.sh
Build the Forgejo runner with the local ACT
The Forgejo runner is rebuilt with the ACT directory by changing the runner/go.mod
file to:
replace github.com/nektos/act => ../act
Running:
cd runner ; go mod tidy
Building:
cd runner ; rm -f forgejo-runner ; make forgejo-runner
Launch Forgejo and the runner
A Forgejo instance is launched with:
cd setup-forgejo
./forgejo.sh setup
firefox $(cat forgejo-url)
The user is root
with password admin1234
. The runner is registered with:
cd setup-forgejo
docker exec --user 1000 forgejo forgejo actions generate-runner-token > forgejo-runner-token
../runner/forgejo-runner register --no-interactive --instance "$(cat forgejo-url)" --name runner --token $(cat forgejo-runner-token) --labels docker:docker://node:20-bullseye,self-hosted:host://-self-hosted,lxc:lxc://debian:bullseye
And launched with:
cd setup-forgejo ; ../runner/forgejo-runner --config runner-config.yml daemon
Note that the runner-config.yml
is required in that particular case
to configure the network in bridge
mode, otherwise the runner will
create a network that cannot reach the forgejo instance.
Try a sample workflow
From the Forgejo web interface, create a repository and add the
following to .forgejo/workflows/try.yaml
. It will launch the job and
the result can be observed from the actions
tab.
on: [push]
jobs:
ls:
runs-on: docker
steps:
- uses: actions/checkout@v4
- run: |
ls ${{ github.workspace }}