main.yml 927 B

123456789101112131415161718192021222324252627282930313233
  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. entrypoint: ./node --dev --alice --validator --unsafe-ws-external --rpc-cors=all
  16. state: started
  17. - name: execute network tests
  18. shell: yarn test >> ../../.tmp/tests.log
  19. args:
  20. chdir: ../../tests/network-tests/
  21. always:
  22. - name: display tests log
  23. shell: cat ../../.tmp/tests.log
  24. - name: stop docker container
  25. docker_container:
  26. name: "joystream-node-testing"
  27. state: absent