main.yml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. - name: run network
  2. block:
  3. - name: yarn install for joystream types
  4. shell: yarn workspace @joystream/types install
  5. - name: yarn build for joystream types
  6. shell: yarn workspace @joystream/types build
  7. - name: yarn install for network tests
  8. shell: yarn workspace joystream-testing install
  9. - name: run docker container
  10. docker_container:
  11. name: "joystream-node"
  12. image: "joystream/node"
  13. ports:
  14. - "9944:9944"
  15. mounts:
  16. - target: /testnet-state
  17. source: "{{ playbook_dir }}/../../testnets/nicaea-exported-state"
  18. type: bind
  19. read_only: yes
  20. entrypoint: ./node --chain ../testnet-state/raw_chain_spec.json --alice --validator --unsafe-ws-external --rpc-cors=all
  21. state: started
  22. - name: execute network tests
  23. shell: yarn test >> ../../.tmp/tests.log
  24. args:
  25. chdir: ../../tests/network-tests/
  26. always:
  27. - name: display tests log
  28. shell: cat ../../.tmp/tests.log
  29. - name: stop docker container
  30. docker_container:
  31. name: "joystream-node-testing"
  32. state: absent