Skip to content

Commit

Permalink
DBG
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanzante committed Sep 29, 2023
1 parent d7f337b commit da8a312
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 "[email protected]"
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

0 comments on commit da8a312

Please sign in to comment.