github.com/cosmos/cosmos-sdk@v0.50.10/.github/workflows/sims-nightly.yml (about) 1 name: Sims Nightly (Long) 2 # Release Sims workflow runs long-lived (multi-seed & large block size) simulations 3 # This workflow only runs mightly at 8am UTC and on releases 4 on: 5 schedule: 6 - cron: "0 8 * * *" 7 release: 8 types: [published] 9 10 permissions: 11 contents: read 12 13 concurrency: 14 group: ci-${{ github.ref }}-sims-nightly-long 15 cancel-in-progress: true 16 17 jobs: 18 install-runsim: 19 permissions: 20 contents: none 21 runs-on: ubuntu-latest 22 steps: 23 - uses: actions/setup-go@v4 24 with: 25 go-version: "1.21" 26 check-latest: true 27 - name: Install runsim 28 run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 29 - uses: actions/cache@v3 30 with: 31 path: ~/go/bin 32 key: ${{ runner.os }}-go-runsim-binary 33 34 test-sim-multi-seed-long: 35 runs-on: ubuntu-latest 36 steps: 37 - uses: actions/checkout@v3 38 - uses: actions/setup-go@v4 39 with: 40 go-version: "1.21" 41 check-latest: true 42 - uses: actions/cache@v3 43 with: 44 path: ~/go/bin 45 key: ${{ runner.os }}-go-runsim-binary 46 - name: test-sim-multi-seed-long 47 run: | 48 make test-sim-multi-seed-long 49 50 sims-notify-success: 51 needs: [test-sim-multi-seed-long] 52 runs-on: ubuntu-latest 53 if: ${{ success() }} 54 steps: 55 - name: Check out repository 56 uses: actions/checkout@v3 57 - name: Get previous workflow status 58 uses: ./.github/actions/last-workflow-status 59 id: last_status 60 with: 61 github_token: ${{ secrets.GITHUB_TOKEN }} 62 63 - name: Notify Slack on success 64 if: ${{ steps.last_status.outputs.last_status == 'failure' }} 65 uses: rtCamp/action-slack-notify@v2.2.0 66 env: 67 SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} 68 SLACK_CHANNEL: sdk-sims 69 SLACK_USERNAME: Sim Tests 70 SLACK_ICON_EMOJI: ":white_check_mark:" 71 SLACK_COLOR: good 72 SLACK_MESSAGE: Sims Nightly (Long) are passing 73 SLACK_FOOTER: "" 74 75 sims-notify-failure: 76 permissions: 77 contents: none 78 needs: [test-sim-multi-seed-long] 79 runs-on: ubuntu-latest 80 if: ${{ failure() }} 81 steps: 82 - name: Notify Slack on failure 83 uses: rtCamp/action-slack-notify@v2.2.0 84 env: 85 SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} 86 SLACK_CHANNEL: sdk-sims 87 SLACK_USERNAME: Sim Tests 88 SLACK_ICON_EMOJI: ":skull:" 89 SLACK_COLOR: danger 90 SLACK_MESSAGE: Sims Nightly (Long) are failing 91 SLACK_FOOTER: ""