We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d3b54 commit 05e30c4Copy full SHA for 05e30c4
.github/actions/codeception/action.yml
@@ -42,6 +42,23 @@ runs:
42
run: composer run docker:build
43
shell: bash
44
working-directory: ${{ inputs.working-directory }}
45
+ env:
46
+ WP_VERSION: ${{ inputs.wordpress }}
47
+ PHP_VERSION: ${{ inputs.php }}
48
+
49
+ - name: Start test environment
50
+ working-directory: ${{ inputs.working-directory }}
51
+ shell: bash
52
+ run: |
53
+ docker compose --env-file .env up --detach
54
55
+ CONTAINER_ID=$(docker compose ps -q wordpress)
56
+ if [ -n "$CONTAINER_ID" ]; then
57
+ docker exec $CONTAINER_ID init-docker.sh
58
+ else
59
+ echo "Error: WordPress container not found."
60
+ exit 1
61
+ fi
62
env:
63
WP_VERSION: ${{ inputs.wordpress }}
64
PHP_VERSION: ${{ inputs.php }}
0 commit comments