No description
  • Go 87.6%
  • JavaScript 10.8%
  • Shell 1.2%
  • Makefile 0.2%
  • Dockerfile 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Renovate Bot 2d49b8ff36 Update https://data.forgejo.org/actions/setup-forgejo action to v3.2.4 (#1636)
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [https://data.forgejo.org/actions/setup-forgejo](https://code.forgejo.org/actions/setup-forgejo) | action | patch | `v3.2.3` → `v3.2.4` |

---

### Release Notes

<details>
<summary>actions/setup-forgejo (https://data.forgejo.org/actions/setup-forgejo)</summary>

### [`v3.2.4`](https://code.forgejo.org/actions/setup-forgejo/releases/tag/v3.2.4)

[Compare Source](https://code.forgejo.org/actions/setup-forgejo/compare/v3.2.3...v3.2.4)

<!--start release-notes-assistant-->

<!--URL:https://code.forgejo.org/actions/setup-forgejo-->

- other
  - [PR](https://code.forgejo.org/actions/setup-forgejo/pulls/1048): <!--number 1048 --><!--line 0 --><!--description VXBkYXRlIGRlcGVuZGVuY3kgZm9yZ2Vqby9ydW5uZXIgdG8gdjEyLjEzLjE=-->Update dependency forgejo/runner to v12.13.1<!--description-->
  - [PR](https://code.forgejo.org/actions/setup-forgejo/pulls/1028): <!--number 1028 --><!--line 0 --><!--description VXBkYXRlIGRlcGVuZGVuY3kgZm9yZ2Vqby9ydW5uZXIgdG8gdjEyLjEzLjA=-->Update dependency forgejo/runner to v12.13.0<!--description-->

<!--end release-notes-assistant-->

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - Between 12:00 AM and 03:59 AM (`* 0-3 * * *`)
- Automerge
  - Between 12:00 AM and 03:59 AM (`* 0-3 * * *`)

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNjAuMiIsInVwZGF0ZWRJblZlciI6IjQzLjI3MS4zIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJLaW5kL0RlcGVuZGVuY3lVcGRhdGUiLCJydW4tZW5kLXRvLWVuZC10ZXN0cyJdfQ==-->

Reviewed-on: https://code.forgejo.org/forgejo/runner/pulls/1636
Reviewed-by: Mathieu Fenniak <mfenniak@noreply.code.forgejo.org>
2026-07-20 00:49:33 +00:00
.forgejo Update https://data.forgejo.org/actions/setup-forgejo action to v3.2.4 (#1636) 2026-07-20 00:49:33 +00:00
act fix: prevent commit impersonation via refs/replace/* during action checkout (#1635) 2026-07-19 20:46:56 +00:00
contrib chore: change systemd example TimeoutStopSec -> infinity (#1551) 2026-06-04 13:57:54 +00:00
examples Update forgejo-runner to v12.13.1 (#1634) 2026-07-19 02:47:05 +00:00
internal chore: upgrade github.com/docker/cli to v29 (#1547) 2026-07-19 14:58:12 +00:00
release-notes feat: add the runner validate subcommand (#757) 2025-07-31 05:37:12 +00:00
testutils test: use flags instead of env variables for skipping tests (#1591) 2026-07-05 22:26:52 +00:00
.dockerignore [FORGEJO] build forgejo-runner 2023-08-23 14:44:47 +02:00
.editorconfig Add .editorconfig and .gitattributes (#186) 2023-05-13 23:51:22 +08:00
.gitattributes Add .editorconfig and .gitattributes (#186) 2023-05-13 23:51:22 +08:00
.gitignore fix: unbreak the build for platforms w/o docker support (#1294) 2026-01-14 20:20:05 +00:00
.golangci.yml test: run lint-check during CI, add forbidigo, cleanup linter exclusions (#1181) 2025-11-23 15:01:52 +00:00
.mockery.yml chore: upgrade Mockery to v3 (#1474) 2026-04-05 01:14:44 +00:00
.pre-commit-hooks.yaml fix(pre-commit): don’t default verbose to on (#1015) 2025-09-18 12:02:07 +00:00
CONTRIBUTING.md chore: add issues to README, minimal contribution guide (#1495) 2026-04-25 02:00:01 +00:00
Dockerfile fix: run forgejo-runner under dumb-init in its container (#1625) 2026-07-14 16:12:23 +00:00
go.mod chore: upgrade github.com/docker/cli to v29 (#1547) 2026-07-19 14:58:12 +00:00
go.sum chore: upgrade github.com/docker/cli to v29 (#1547) 2026-07-19 14:58:12 +00:00
LICENSE chore: change the license to GPLv3-or-later (#773) 2025-09-04 09:26:12 +00:00
main.go fix: unrecoverable errors in artifactcache should have non-zero exit code (#1222) 2025-12-15 14:50:17 +00:00
Makefile Update module github.com/golangci/golangci-lint/v2/cmd/golangci-lint to v2.12.2 (#1613) 2026-07-10 02:40:51 +00:00
README.md docs: revise testing section of README (#1589) 2026-07-05 22:27:53 +00:00
RELEASE-NOTES.md chore: release notes are now published together with the release (#775) 2025-07-31 08:02:20 +00:00
renovate.json chore(renovate): change name for lxc node version 2026-01-13 11:29:01 +01:00

Forgejo Runner

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. Forgejo Runner can also run workflows locally and act as a cache.

Forgejo Runner is distributed under the terms of the GPL version 3.0 or any later version.

Issues

It is totally okay to report issues in the "wrong" place; identifying the right place is hard. In the worst case, we will ask you to open it somewhere else because issues cannot be transferred between instances.

Reporting Security Vulnerabilities

Please report security-related issues to security@forgejo.org using encryption.

Contributing

See the contribution guide.

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.

Development

The Forgejo runner 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

Linting

  • make lint-check
  • make lint # will fix some lint errors

Testing

There are three kinds of tests for Forgejo Runner:

  • Unit tests
  • Integration tests
  • End-to-end tests that involve a running Forgejo instance

Unit and integration tests are included in this repository, whereas end-to-end tests are maintained separately.

Tests can either be run using predefined GNU Make targets or go test.

Running Tests

To run all unit tests with GNU Make, run:

$ make test

Or with go test, run:

$ go test -short ./...

To run all integration tests with GNU Make, run:

$ make integration-test

Or with go test, run:

$ go test ./...

Toggling Tests by Feature

Forgejo Runner integrates with various technologies like Docker and LXC. They are not available on all platforms that Forgejo Runner can run on. The related tests take a long time to execute, too. It is possible to enable or disable the tests with the help of the test argument -features. All feature-related tests are enabled by default.

-features takes a list of comma-separated feature names. For example, to run all tests including those related to docker and lxc, invoke:

$ go test ./... -args -features "docker,lxc"

If all feature-related tests should be skipped, run:

$ go test ./... -args -features "-"

If -features is not present, all feature-related tests will be enabled.

List of all feature toggles:

Key Purpose
docker Toggles tests that require Docker or Podman.
lxc Toggles tests that require LXC.

Running End-to-End Tests

For running end-to-end tests during development, please see the instructions in the respective repository where the end-to-end tests are maintained.

During CI, the end-to-end tests can be triggered for a particular pull request by attaching the label run-end-to-end-tests.