main.yml 398 B

123456789101112131415161718
  1. - name: run network
  2. block:
  3. - name: run two nodes containerized network
  4. docker_compose:
  5. project_src: ./
  6. state: present
  7. - name: execute network tests
  8. shell: yarn test >> ../../.tmp/tests.log
  9. args:
  10. chdir: ../../tests/network-tests/
  11. always:
  12. - name: stop containers
  13. docker_compose:
  14. project_src: ./
  15. state: absent