documentation et automatisation de act en local

This commit is contained in:
styve Lioumba
2025-10-05 20:28:15 +02:00
parent 2b997a8f61
commit 4191ac1ed0
3 changed files with 27 additions and 0 deletions

3
.actrc Normal file
View File

@@ -0,0 +1,3 @@
--container-architecture linux/arm64
-W .gitea/workflows
-P ubuntu-latest=node:20-bullseye

2
.gitignore vendored
View File

@@ -122,3 +122,5 @@ testem.log
Thumbs.db Thumbs.db
start.sh start.sh
logs/*
logs/*.log

22
CMD.md Normal file
View File

@@ -0,0 +1,22 @@
# Utilisation de `act` avec des workflows Gitea
```bash
# Lister les workflows trouvés sous .gitea/workflows
act -W .gitea/workflows -l
# Lancer lévénement "push/pull_request/workflow_dispatch/release"
act -W .gitea/workflows push
# Lancer lévénement "pull_request"
act -W .gitea/workflows pull_request
# Nexécuter quun seul job du workflow (ex. "build")
act -W .gitea/workflows -j build
```
# Dry-run et exécution en arrière-plan
```bash
echo 'Lancement en dry-run de lévénement "push"'
act -n push
echo 'Activation de lévénement "push"'
act push > act_push.log 2>&1 &
```