github.com/Finschia/ostracon@v1.1.5/.github/workflows/e2e-nightly.yml (about) 1 # Runs randomly generated E2E testnets nightly 2 # on the main release branch 3 4 name: e2e-nightly-main 5 on: 6 workflow_dispatch: # allow running workflow manually, in theory 7 schedule: 8 - cron: '0 2 * * *' 9 10 jobs: 11 e2e-nightly-test: 12 # Run parallel jobs for the listed testnet groups (must match the 13 # ./build/generator -g flag) 14 strategy: 15 fail-fast: false 16 matrix: 17 group: ['00', '01', '02', '03'] 18 runs-on: ubuntu-latest 19 timeout-minutes: 60 20 steps: 21 - uses: actions/setup-go@v4 22 with: 23 go-version: '1.20' 24 25 - uses: actions/checkout@v4 26 with: 27 ref: 'main' 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: 44 # needs: e2e-nightly-test 45 # if: ${{ failure() }} 46 # runs-on: ubuntu-latest 47 # steps: 48 # - name: Notify Slack on failure 49 # uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 50 # env: 51 # SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} 52 # SLACK_CHANNEL: ostracon-internal 53 # SLACK_USERNAME: Nightly E2E Tests 54 # SLACK_ICON_EMOJI: ':skull:' 55 # SLACK_COLOR: danger 56 # SLACK_MESSAGE: Nightly E2E tests failed on main 57 # SLACK_FOOTER: '' 58 59 # e2e-nightly-success: # may turn this off once they seem to pass consistently 60 # needs: e2e-nightly-test 61 # if: ${{ success() }} 62 # runs-on: ubuntu-latest 63 # steps: 64 # - name: Notify Slack on success 65 # uses: rtCamp/action-slack-notify@12e36fc18b0689399306c2e0b3e0f2978b7f1ee7 66 # env: 67 # SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} 68 # SLACK_CHANNEL: ostracon-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 main 73 # SLACK_FOOTER: ''