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.

49 lines
1.5 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. runs-on: ubuntu-latest
  16. timeout-minutes: 60
  17. steps:
  18. - uses: actions/checkout@v2
  19. - name: Build
  20. working-directory: test/e2e
  21. # Run make jobs in parallel, since we can't run steps in parallel.
  22. run: make -j2 docker generator runner
  23. - name: Generate testnets
  24. working-directory: test/e2e
  25. # When changing -g, also change the matrix groups above
  26. run: ./build/generator -g 4 -d networks/nightly
  27. - name: Run testnets in group ${{ matrix.group }}
  28. working-directory: test/e2e
  29. run: ./run-multiple.sh networks/nightly/*-group${{ matrix.group }}-*.toml
  30. e2e-nightly-fail:
  31. needs: e2e-nightly-test
  32. if: ${{ failure() }}
  33. runs-on: ubuntu-latest
  34. steps:
  35. - name: Notify Slack on failure
  36. uses: rtCamp/action-slack-notify@e9db0ef
  37. env:
  38. SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
  39. SLACK_CHANNEL: tendermint-internal
  40. SLACK_USERNAME: Nightly E2E Tests
  41. SLACK_ICON_EMOJI: ':skull:'
  42. SLACK_COLOR: danger
  43. SLACK_MESSAGE: Nightly E2E tests failed
  44. SLACK_FOOTER: ''