Skip to content

Commit 1f6cf79

Browse files
authored
Add proper docker container context
1 parent c2755a9 commit 1f6cf79

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,10 @@ jobs:
9797
# Setup WordPress tests
9898
- name: Setup WordPress core tests
9999
run: |
100+
CONTAINER_ID=$(docker-compose -f .github/docker/docker-compose.yml ps -q wordpress)
100101
echo "Copying WordPress tests..."
101-
mkdir -p /var/www/html/tests/
102-
wp_version=$(wp core version); svn export --quiet --ignore-externals https://develop.svn.wordpress.org/$wp_version/tests/phpunit/includes/ /var/www/html/tests/includes/
102+
docker exec $CONTAINER_ID sudo mkdir -p /var/www/html/tests/
103+
docker exec $CONTAINER_ID wp_version=$(wp core version); svn export --quiet --ignore-externals https://develop.svn.wordpress.org/$wp_version/tests/phpunit/includes/ /var/www/html/tests/includes/
103104
ls -alh /var/www/html/tests/includes/
104105
105106
#Configure GH token to access the plugin-modules repo, which is private

0 commit comments

Comments
 (0)