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.

57 lines
1.7 KiB

  1. # Runs randomly generated E2E testnets nightly.
  2. name: e2e-nightly
  3. on:
  4. workflow_dispatch: # allow running workflow manually
  5. schedule:
  6. - cron: '0 2 * * *'
  7. jobs:
  8. e2e-nightly-test:
  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. # todo: expand to multiple versions after 0.35 release
  16. branch: ['master', 'v0.34.x']
  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. with:
  25. ref: ${{ matrix.branch}}
  26. - name: Build
  27. working-directory: test/e2e
  28. # Run make jobs in parallel, since we can't run steps in parallel.
  29. run: make -j2 docker generator runner
  30. - name: Generate testnets
  31. working-directory: test/e2e
  32. # When changing -g, also change the matrix groups above
  33. run: ./build/generator -g 4 -d networks/nightly
  34. - name: Run testnets in group ${{ matrix.group }}
  35. working-directory: test/e2e
  36. run: ./run-multiple.sh networks/nightly/*-group${{ matrix.group }}-*.toml
  37. e2e-nightly-fail:
  38. needs: e2e-nightly-test
  39. if: ${{ failure() }}
  40. runs-on: ubuntu-latest
  41. steps:
  42. - name: Notify Slack on failure
  43. uses: rtCamp/action-slack-notify@ae4223259071871559b6e9d08b24a63d71b3f0c0
  44. env:
  45. SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
  46. SLACK_CHANNEL: tendermint-internal
  47. SLACK_USERNAME: Nightly E2E Tests
  48. SLACK_ICON_EMOJI: ':skull:'
  49. SLACK_COLOR: danger
  50. SLACK_MESSAGE: Nightly E2E tests failed
  51. SLACK_FOOTER: ''