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.

41 lines
1.1 KiB

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