github.com/cosmos/cosmos-sdk@v0.50.10/.github/workflows/sims-045.yml (about) 1 name: Sims release/0.45.x 2 # Sims workflow runs multiple types of simulations (nondeterminism, import-export, after-import, multi-seed-short) 3 # This workflow will run on all Pull Requests, if a .go, .mod or .sum file have been changed 4 on: 5 schedule: 6 - cron: "0 0,12 * * *" 7 release: 8 types: [published] 9 10 concurrency: 11 group: ci-${{ github.ref }}-sims-045 12 cancel-in-progress: true 13 14 jobs: 15 build: 16 runs-on: ubuntu-latest 17 if: "!contains(github.event.head_commit.message, 'skip-sims')" 18 steps: 19 - uses: actions/checkout@v3 20 with: 21 ref: "release/v0.45.x" 22 - uses: actions/setup-go@v4 23 with: 24 go-version: "1.21" 25 check-latest: true 26 - run: make build 27 28 install-runsim: 29 permissions: 30 contents: none 31 runs-on: ubuntu-latest 32 needs: build 33 steps: 34 - uses: actions/setup-go@v4 35 with: 36 go-version: "1.21" 37 check-latest: true 38 - name: Install runsim 39 run: go install github.com/cosmos/tools/cmd/runsim@v1.0.0 40 - uses: actions/cache@v3 41 with: 42 path: ~/go/bin 43 key: ${{ runner.os }}-go-runsim-binary 44 45 test-sim-import-export: 46 runs-on: ubuntu-latest 47 needs: [build, install-runsim] 48 steps: 49 - uses: actions/checkout@v3 50 with: 51 ref: "release/v0.45.x" 52 - uses: actions/setup-go@v4 53 with: 54 go-version: "1.21" 55 check-latest: true 56 - uses: actions/cache@v3 57 with: 58 path: ~/go/bin 59 key: ${{ runner.os }}-go-runsim-binary 60 - name: test-sim-import-export 61 run: | 62 make test-sim-import-export 63 64 test-sim-after-import: 65 runs-on: ubuntu-latest 66 needs: [build, install-runsim] 67 steps: 68 - uses: actions/checkout@v3 69 with: 70 ref: "release/v0.45.x" 71 - uses: actions/setup-go@v4 72 with: 73 go-version: "1.21" 74 check-latest: true 75 - uses: actions/cache@v3 76 with: 77 path: ~/go/bin 78 key: ${{ runner.os }}-go-runsim-binary 79 - name: test-sim-after-import 80 run: | 81 make test-sim-after-import 82 83 test-sim-multi-seed-short: 84 runs-on: ubuntu-latest 85 needs: [build, install-runsim] 86 timeout-minutes: 60 87 steps: 88 - uses: actions/checkout@v3 89 with: 90 ref: "release/v0.45.x" 91 - uses: actions/setup-go@v4 92 with: 93 go-version: "1.21" 94 check-latest: true 95 - uses: actions/cache@v3 96 with: 97 path: ~/go/bin 98 key: ${{ runner.os }}-go-runsim-binary 99 - name: test-sim-multi-seed-short 100 run: | 101 make test-sim-multi-seed-short 102 103 sims-notify-success: 104 needs: 105 [test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export] 106 runs-on: ubuntu-latest 107 if: ${{ success() }} 108 steps: 109 - uses: actions/checkout@v3 110 - name: Get previous workflow status 111 uses: ./.github/actions/last-workflow-status 112 id: last_status 113 with: 114 github_token: ${{ secrets.GITHUB_TOKEN }} 115 116 - name: Notify Slack on success 117 if: ${{ steps.last_status.outputs.last_status == 'failure' }} 118 uses: rtCamp/action-slack-notify@v2.2.0 119 env: 120 SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} 121 SLACK_CHANNEL: sdk-sims 122 SLACK_USERNAME: Sim Tests release/0.45.x 123 SLACK_ICON_EMOJI: ":white_check_mark:" 124 SLACK_COLOR: good 125 SLACK_MESSAGE: 0.45.x Sims are passing 126 SLACK_FOOTER: "" 127 128 sims-notify-failure: 129 permissions: 130 contents: none 131 needs: 132 [test-sim-multi-seed-short, test-sim-after-import, test-sim-import-export] 133 runs-on: ubuntu-latest 134 if: ${{ failure() }} 135 steps: 136 - name: Notify Slack on failure 137 uses: rtCamp/action-slack-notify@v2.2.0 138 env: 139 SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} 140 SLACK_CHANNEL: sdk-sims 141 SLACK_USERNAME: Sim Tests release/0.45.x 142 SLACK_ICON_EMOJI: ":skull:" 143 SLACK_COLOR: danger 144 SLACK_MESSAGE: 0.45.x Sims are failing 145 SLACK_FOOTER: ""