diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 0189269..2824087 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -32,7 +32,7 @@ jobs: docker pull metadrop/dind-for-drupal-boilerplate:v0.1 echo " Create a docker container fromt he downloaded image." - cid=$(docker run -d --privileged --name testrunner --mount type=bind,source=.,target=/tests metadrop/dind-for-drupal-boilerplate:v0.1) + cid=$(docker run -d --privileged --name testrunner --mount type=bind,source=.,target=/boilerplate_tests metadrop/dind-for-drupal-boilerplate:v0.1) echo "Container ID is $cid" sleep 5 @@ -42,18 +42,21 @@ jobs: docker exec $cid chown :tester /var/run/docker.sock || echo "chown failed" docker exec $cid ls -la /var/run/ + docker exec $cid git config --global user.email "you@example.com" + docker exec $cid git config --global user.name "Your Name" + echo "Download and uncompress shellspec, the test framework used for testing." docker exec $cid wget https://github.com/shellspec/shellspec/releases/download/0.28.1/shellspec-dist.tar.gz -O /opt/shellspec-dist.tar.gz docker exec $cid tar xfvz /opt/shellspec-dist.tar.gz -C /opt/ # Prepare environment: run composer install - docker exec -u tester -w /tests/ $cid composer install --ignore-platform-reqs + docker exec -u tester -w /boilerplate_tests/ $cid composer install --ignore-platform-reqs # Run boilerplate assistant - docker exec -u tester -w /tests/ $cid composer boilerplate:assistant + docker exec -u tester -w /boilerplate_tests/ $cid composer boilerplate:assistant - docker exec -u tester -w /tests/ $cid behat + docker exec -u tester -w /boilerplate_tests/ $cid behat # Run tests! - docker exec -u tester -w /tests/ $cid /opt/shellspec/shellspec + docker exec -u tester -w /boilerplate_tests/ $cid /opt/shellspec/shellspec