Files
test-actions/README.md
lukas 1f75ee9ffb Update README.md
Add command to run action locally directly on the host, without using Docker
2025-08-13 14:03:30 +00:00

2.5 KiB

Gitea Actions testing ground

This repository is a testing ground for several Gitea Actions used within the Phyllome OS project.

Gitea Actions closely resemble GitHub Actions, to the point that several GitHub Actions can be used in Gitea Actions workflows without modification.

How to test actions locally

  • Clone this repository locally

  • Download the latest version of the act runner for your architecture here

    • For instance, if your computer is running Linux with an amd64 processor: act_runner-0.2.12-linux-amd64
curl https://dl.gitea.com/act_runner/0.2.12/act_runner-0.2.12-linux-amd64 --output act_runner
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 19.2M  100 19.2M    0     0   102M      0 --:--:-- --:--:-- --:--:--  103M
  • Add execute permission
chmod +x act_runner 
  • Run the act runner using the exec argument and specify the workflow file to be used:
./act_runner exec --workflows workflows/checkout.yml 
INFO[0000] Using the only detected workflow event: push 
INFO[0000] Planning jobs for event: push                
INFO[0000] cache handler listens on: http://192.168.122.175:38917 
INFO[0000] Start server on http://192.168.122.175:34567 
[...]
[checkout/checkout] ⭐ Run Main https://git.phyllo.me/actions/checkout@v4
[checkout/checkout]   🐳  docker cp src=/home/lukas/test-actions/. dst=/home/lukas/test-actions
[checkout/checkout]   ✅  Success - Main https://git.phyllo.me/actions/checkout@v4
[checkout/checkout] Cleaning up container for job checkout
[checkout/checkout] Cleaning up network for job checkout, and network name is: GITEA-ACTIONS-TASK-push_WORKFLOW-checkout_JOB-checkout-checkout-network
  • If you wish to run the action locally with a self-hosted runner that runs directly on the host, use the following instead:
./act_runner exec --workflows workflows/checkout.yml  -i -self-hosted

How workflows are used in Phyllome OS

Several known actions repositories are mirrored within Phyllome's Gitea instance, under the actions organization.

Good resources