Skip to content

Commit

Permalink
DBG2
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanzante committed Sep 29, 2023
1 parent ce2c0f1 commit 6db2914
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6db2914

Please sign in to comment.