From 6db2914cf8e99af6200d658feab0cabae20c6b62 Mon Sep 17 00:00:00 2001 From: Ricardo Sanz Date: Fri, 29 Sep 2023 20:47:09 +0200 Subject: [PATCH] DBG2 --- .github/workflows/tests.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 977275e..3fa9917 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -19,25 +19,24 @@ jobs: - name: Prepare dind testing and run tests uses: metadrop/dind-for-drupal-boilerplate:v0.1 run: | - # # Get image to run the tests. - # docker pull metadrop/dind-for-drupal-boilerplate:v0.1 + echo "Get image to run the tests." + docker pull metadrop/dind-for-drupal-boilerplate:v0.1 - # # Create a docker container fromt he downloaded image. - # cid=$(docker run -d -it --privileged --name testrunner --mount type=bind,source=.,target=/tests metadrop/dind-for-drupal-boilerplate:v0.1) + echo " Create a docker container fromt he downloaded image." + cid=$(docker run -d -it --privileged --name testrunner --mount type=bind,source=.,target=/tests metadrop/dind-for-drupal-boilerplate:v0.1) - # # Make docker available for the tester user (dirty trick? anyway to improve it?) - # docker exec -it $cid chown :tester /var/run/docker.sock + echo "Make docker available for the tester user (dirty trick? anyway to improve it?)" + docker exec -it $cid chown :tester /var/run/docker.sock - # # Download and uncompress shellspec, the test framework used for testing. - # docker exec -it $cid wget https://github.com/shellspec/shellspec/releases/download/0.28.1/shellspec-dist.tar.gz -O /opt/shellspec-dist.tar.gz - # docker exec -it $cid tar xfvz /opt/shellspec-dist.tar.gz -C /opt/ + echo "Download and uncompress shellspec, the test framework used for testing." + docker exec -it $cid wget https://github.com/shellspec/shellspec/releases/download/0.28.1/shellspec-dist.tar.gz -O /opt/shellspec-dist.tar.gz + docker exec -it $cid tar xfvz /opt/shellspec-dist.tar.gz -C /opt/ - # # Prepare environment: run composer install - # docker exec -it -u tester -w /tests/ $cid composer install --ignore-platform-reqs + # Prepare environment: run composer install + docker exec -it -u tester -w /tests/ $cid composer install --ignore-platform-reqs - # # Run boierplate assistant - # docker exec -u tester -w /tests/ $cid composer boilerplate:assistant + # Run boierplate assistant + docker exec -u tester -w /tests/ $cid composer boilerplate:assistant - # # Run tests! - # docker exec -it -u tester -w /tests/ $cid /opt/shellspec/shellspec - ls -la + # Run tests! + docker exec -it -u tester -w /tests/ $cid /opt/shellspec/shellspec