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.

76 lines
2.4 KiB

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