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.

69 lines
2.2 KiB

  1. # Runs randomly generated E2E testnets nightly on master
  2. name: e2e-nightly-master
  3. on:
  4. workflow_dispatch: # allow running workflow manually
  5. schedule:
  6. - cron: '0 2 * * *'
  7. jobs:
  8. e2e-nightly-test-2:
  9. # Run parallel jobs for the listed testnet groups (must match the
  10. # ./build/generator -g flag)
  11. strategy:
  12. fail-fast: false
  13. matrix:
  14. group: ['00', '01', '02', '03']
  15. runs-on: ubuntu-latest
  16. timeout-minutes: 60
  17. steps:
  18. - uses: actions/setup-go@v2
  19. with:
  20. go-version: '1.15'
  21. - uses: actions/checkout@v2
  22. - name: Build
  23. working-directory: test/e2e
  24. # Run make jobs in parallel, since we can't run steps in parallel.
  25. run: make -j2 docker generator runner
  26. - name: Generate testnets
  27. working-directory: test/e2e
  28. # When changing -g, also change the matrix groups above
  29. run: ./build/generator -g 4 -d networks/nightly
  30. - name: Run testnets in group ${{ matrix.group }}
  31. working-directory: test/e2e
  32. run: ./run-multiple.sh networks/nightly/*-group${{ matrix.group }}-*.toml
  33. e2e-nightly-fail-2:
  34. needs: e2e-nightly-test-2
  35. if: ${{ failure() }}
  36. runs-on: ubuntu-latest
  37. steps:
  38. - name: Notify Slack on failure
  39. uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
  40. env:
  41. SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
  42. SLACK_CHANNEL: tendermint-internal
  43. SLACK_USERNAME: Nightly E2E Tests
  44. SLACK_ICON_EMOJI: ':skull:'
  45. SLACK_COLOR: danger
  46. SLACK_MESSAGE: Nightly E2E (copy) tests failed on master
  47. SLACK_FOOTER: ''
  48. e2e-nightly-success: # may turn this off once they seem to pass consistently
  49. needs: e2e-nightly-test-2
  50. if: ${{ success() }}
  51. runs-on: ubuntu-latest
  52. steps:
  53. - name: Notify Slack on success
  54. uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
  55. env:
  56. SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
  57. SLACK_CHANNEL: tendermint-internal
  58. SLACK_USERNAME: Nightly E2E Tests
  59. SLACK_ICON_EMOJI: ':white_check_mark:'
  60. SLACK_COLOR: good
  61. SLACK_MESSAGE: Nightly E2E (copy) tests passed on master
  62. SLACK_FOOTER: ''