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.

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