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.

70 lines
2.2 KiB

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