documentation et automatisation de act en local
This commit is contained in:
3
.actrc
Normal file
3
.actrc
Normal file
@@ -0,0 +1,3 @@
|
||||
--container-architecture linux/arm64
|
||||
-W .gitea/workflows
|
||||
-P ubuntu-latest=node:20-bullseye
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -122,3 +122,5 @@ testem.log
|
||||
Thumbs.db
|
||||
|
||||
start.sh
|
||||
logs/*
|
||||
logs/*.log
|
||||
|
||||
22
CMD.md
Normal file
22
CMD.md
Normal 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
|
||||
|
||||
# N’exécuter qu’un 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 &
|
||||
```
|
||||
Reference in New Issue
Block a user