Skip to content

Commit

Permalink
DBG1
Browse files Browse the repository at this point in the history
  • Loading branch information
rsanzante committed Sep 29, 2023
1 parent a2096de commit ce2c0f1
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,27 @@ jobs:
uses: actions/checkout@v2

- 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
# # 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)
# # 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
# # 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/
# # 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
# # Run tests!
# docker exec -it -u tester -w /tests/ $cid /opt/shellspec/shellspec
ls -la

0 comments on commit ce2c0f1

Please sign in to comment.