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.

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