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

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