github.com/evdatsion/aphelion-dpos-bft@v0.32.1/.github/workflows/e2e-nightly.yml (about) 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 8 jobs: 9 e2e-nightly-test: 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.4' 22 23 - uses: actions/checkout@v2 24 25 - name: Build 26 working-directory: test/e2e 27 # Run make jobs in parallel, since we can't run steps in parallel. 28 run: make -j2 docker generator runner 29 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 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 39 e2e-nightly-fail: 40 needs: e2e-nightly-test 41 if: ${{ failure() }} 42 runs-on: ubuntu-latest 43 steps: 44 - name: Notify Slack on failure 45 uses: rtCamp/action-slack-notify@ecc1353ce30ef086ce3fc3d1ea9ac2e32e150402 46 env: 47 SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} 48 SLACK_CHANNEL: tendermint-internal 49 SLACK_USERNAME: Nightly E2E Tests 50 SLACK_ICON_EMOJI: ':skull:' 51 SLACK_COLOR: danger 52 SLACK_MESSAGE: Nightly E2E tests failed 53 SLACK_FOOTER: ''