You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1008 B

  1. name: e2e-tests
  2. # Runs the CI end-to-end test network on all pushes to master or release branches
  3. # and every pull request, but only if any Go files have been changed.
  4. on:
  5. pull_request:
  6. push:
  7. branches:
  8. - master
  9. - release/**
  10. jobs:
  11. test:
  12. runs-on: ubuntu-latest
  13. timeout-minutes: 15
  14. steps:
  15. - uses: actions/checkout@v2
  16. - uses: technote-space/get-diff-action@v3
  17. with:
  18. SUFFIX_FILTER: |
  19. .go
  20. .mod
  21. .sum
  22. SET_ENV_NAME_INSERTIONS: 1
  23. SET_ENV_NAME_LINES: 1
  24. - name: Build
  25. working-directory: test/e2e
  26. # Run two make jobs in parallel, since we can't run steps in parallel.
  27. run: make -j2 docker runner
  28. - name: Run CI testnet
  29. working-directory: test/e2e
  30. run: sudo ./build/runner -f networks/ci.toml
  31. - name: Emit logs on failure
  32. if: ${{ failure() }}
  33. working-directory: test/e2e
  34. run: ./build/runner -f networks/ci.toml logs