|
80 | 80 | - name: test-sim-multi-seed-short |
81 | 81 | run: | |
82 | 82 | make test-sim-multi-seed-short |
83 | | -
|
84 | | - sims-notify-success: |
85 | | - needs: |
86 | | - [ |
87 | | - test-sim-multi-seed-short, |
88 | | - test-sim-after-import, |
89 | | - test-sim-import-export, |
90 | | - test-sim-deterministic, |
91 | | - ] |
92 | | - runs-on: depot-ubuntu-22.04-16 |
93 | | - if: ${{ success() }} |
94 | | - steps: |
95 | | - - name: Check out repository |
96 | | - uses: actions/checkout@v4 |
97 | | - - name: Get previous workflow status |
98 | | - uses: ./.github/actions/last-workflow-status |
99 | | - id: last_status |
100 | | - with: |
101 | | - github_token: ${{ secrets.GITHUB_TOKEN }} |
102 | | - |
103 | | - - name: Notify Slack on success |
104 | | - if: ${{ steps.last_status.outputs.last_status == 'failure' }} |
105 | | - |
106 | | - env: |
107 | | - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
108 | | - SLACK_CHANNEL: sdk-sims |
109 | | - SLACK_USERNAME: Sim Tests |
110 | | - SLACK_ICON_EMOJI: ":white_check_mark:" |
111 | | - SLACK_COLOR: good |
112 | | - SLACK_MESSAGE: Sims are passing |
113 | | - SLACK_FOOTER: "" |
114 | | - |
115 | | - sims-notify-failure: |
116 | | - permissions: |
117 | | - contents: none |
118 | | - needs: |
119 | | - [ |
120 | | - test-sim-multi-seed-short, |
121 | | - test-sim-after-import, |
122 | | - test-sim-import-export, |
123 | | - test-sim-deterministic, |
124 | | - ] |
125 | | - runs-on: depot-ubuntu-22.04-16 |
126 | | - if: ${{ failure() }} |
127 | | - steps: |
128 | | - - name: Notify Slack on failure |
129 | | - |
130 | | - env: |
131 | | - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} |
132 | | - SLACK_CHANNEL: sdk-sims |
133 | | - SLACK_USERNAME: Sim Tests |
134 | | - SLACK_ICON_EMOJI: ":skull:" |
135 | | - SLACK_COLOR: danger |
136 | | - SLACK_MESSAGE: Sims are failing |
137 | | - SLACK_FOOTER: "" |
0 commit comments