github.com/Oyster-zx/tendermint@v0.34.24-fork/.github/workflows/e2e-nightly-master.yml (about)

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