Skip to content

Commit 05e30c4

Browse files
committed
Updated workflow.
1 parent f5d3b54 commit 05e30c4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/actions/codeception/action.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,23 @@ runs:
4242
run: composer run docker:build
4343
shell: bash
4444
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
4562
env:
4663
WP_VERSION: ${{ inputs.wordpress }}
4764
PHP_VERSION: ${{ inputs.php }}

0 commit comments

Comments
 (0)