feat: add act configuration for local workflow testing
- Add .actrc file to map custom runner labels to Docker images - Add test-workflow.sh script for easy local testing with act - Maps php-ci runner to php-ci:latest Docker image - Maps docker-build runner to docker:latest - Helps resolve 'ansible: command not found' errors when testing workflows locally
This commit is contained in:
9
test-workflow.sh
Executable file
9
test-workflow.sh
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/bin/bash
|
||||
# Script to test Gitea workflows locally with act
|
||||
# Maps custom runner labels to Docker images
|
||||
|
||||
act -P php-ci=php-ci:latest \
|
||||
-P docker-build=docker:latest \
|
||||
-P ubuntu-latest=ubuntu:latest \
|
||||
-P ubuntu-22.04=ubuntu:22.04 \
|
||||
"$@"
|
||||
Reference in New Issue
Block a user