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
1002 B

  1. name: e2e
  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. e2e-test:
  12. runs-on: ubuntu-latest
  13. timeout-minutes: 15
  14. steps:
  15. - uses: actions/checkout@v2
  16. - uses: technote-space/get-diff-action@v4
  17. with:
  18. PATTERNS: |
  19. **/**.go
  20. go.mod
  21. go.sum
  22. - name: Build
  23. working-directory: test/e2e
  24. # Run two make jobs in parallel, since we can't run steps in parallel.
  25. run: make -j2 docker runner
  26. if: "env.GIT_DIFF != ''"
  27. - name: Run CI testnet
  28. working-directory: test/e2e
  29. run: ./build/runner -f networks/ci.toml
  30. if: "env.GIT_DIFF != ''"
  31. - name: Emit logs on failure
  32. if: ${{ failure() }}
  33. working-directory: test/e2e
  34. run: ./build/runner -f networks/ci.toml logs