run-network-tests.yml 939 B

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