Files
test-actions/README.md
lukas b5ff782c46
Some checks failed
checkout / checkout (push) Has been cancelled
Update README.md
Add more explanation

Signed-off-by: lukas <lukas@phyllo.me>
2025-08-12 10:15:10 +00:00

55 lines
2.3 KiB
Markdown

# 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](https://dl.gitea.com/act_runner/)
- 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
```
## How workflows are used in Phyllome OS
Several known actions repositories are mirrored within Phyllome's Gitea instance, under the [actions](https://git.phyllo.me/actions) organization.
# Good resources
- [Official Gitea Action documentation](https://docs.gitea.com/usage/actions/quickstart)
- [Awesome Actions](https://github.com/sdras/awesome-actions#workflow-examples)
- [GitHub Actions Survival Skills](https://thekevinwang.com/2022/06/13/github-actions-survival-skills)