run-network-tests.yml 953 B

1234567891011121314151617181920212223242526272829
  1. name: run-network-tests
  2. on:
  3. pull_request:
  4. types: [labeled]
  5. workflow_dispatch:
  6. jobs:
  7. run_network_tests:
  8. if: github.event.label.name == 'run-network-tests' || github.event.action == null
  9. runs-on: ubuntu-latest
  10. strategy:
  11. matrix:
  12. node-version: [12.x]
  13. steps:
  14. - uses: actions/checkout@v1
  15. - uses: actions/setup-node@v1
  16. with:
  17. node-version: ${{ matrix.node-version }}
  18. - name: Install packages and dependencies
  19. run: yarn install --frozen-lockfile
  20. - name: Ensure tests are runnable
  21. run: yarn workspace joystream-testing build
  22. - name: Configure block production to 2000ms (fatser tests)
  23. run: ./scripts/alter-block-creation-time.sh
  24. - name: Build and start chain
  25. working-directory: devops/dockerfiles/node-and-runtime/
  26. run: docker-compose up -d
  27. - name: Execute network tests
  28. run: yarn workspace joystream-testing test