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.

73 lines
2.3 KiB

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