- 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
10 lines
255 B
Bash
Executable File
10 lines
255 B
Bash
Executable File
#!/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 \
|
|
"$@"
|