56
56
# it has been merged.
57
57
if : github.event_name == 'pull_request'
58
58
run : yarn ng-dev format changed --check ${{ github.event.pull_request.base.sha }}
59
+ - name : Notify about failed test
60
+ if : ${{ failure() && github.event_name == 'push'}}
61
+ uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
62
+ with :
63
+ channel-id : ' C015EBF2XB6'
64
+ slack-message : ' Lint test job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
65
+ env :
66
+ SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
59
67
60
68
api_golden_checks :
61
69
runs-on : ubuntu-latest
72
80
run : yarn install --frozen-lockfile
73
81
- name : Check API Goldens
74
82
run : yarn bazel test tools/public_api_guard/...
83
+ - name : Notify about failed test
84
+ if : ${{ failure() && github.event_name == 'push'}}
85
+ uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
86
+ with :
87
+ channel-id : ' C015EBF2XB6'
88
+ slack-message : ' API Goldens test job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
89
+ env :
90
+ SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
75
91
76
92
e2e :
77
93
runs-on : ubuntu-latest
@@ -88,6 +104,14 @@ jobs:
88
104
run : yarn install --frozen-lockfile
89
105
- name : Run e2e tests
90
106
run : yarn e2e --flaky_test_attempts=2
107
+ - name : Notify about failed test
108
+ if : ${{ failure() && github.event_name == 'push'}}
109
+ uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
110
+ with :
111
+ channel-id : ' C015EBF2XB6'
112
+ slack-message : ' E2E test job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
113
+ env :
114
+ SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
91
115
92
116
integration :
93
117
runs-on : ubuntu-latest
@@ -131,6 +155,14 @@ jobs:
131
155
run : yarn install --frozen-lockfile
132
156
- name : Run linker AOT tests
133
157
run : yarn test-linker-aot
158
+ - name : Notify about failed test
159
+ if : ${{ failure() && github.event_name == 'push'}}
160
+ uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
161
+ with :
162
+ channel-id : ' C015EBF2XB6'
163
+ slack-message : ' Linker AOT test job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
164
+ env :
165
+ SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
134
166
135
167
linker_jit_tests :
136
168
runs-on : ubuntu-latest-4core
@@ -147,6 +179,14 @@ jobs:
147
179
run : yarn install --frozen-lockfile
148
180
- name : Run linker JIT tests
149
181
run : yarn test-linker-jit
182
+ - name : Notify about failed test
183
+ if : ${{ failure() && github.event_name == 'push'}}
184
+ uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
185
+ with :
186
+ channel-id : ' C015EBF2XB6'
187
+ slack-message : ' Linker JIT test job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
188
+ env :
189
+ SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
150
190
151
191
test :
152
192
runs-on : ubuntu-latest-16core
@@ -163,3 +203,11 @@ jobs:
163
203
run : yarn install --frozen-lockfile
164
204
- name : Run tests
165
205
run : bazel test --build_tag_filters=-e2e --test_tag_filters=-e2e --build_tests_only -- src/...
206
+ - name : Notify about failed test
207
+ if : ${{ failure() && github.event_name == 'push'}}
208
+ uses : slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v=v1.24.0
209
+ with :
210
+ channel-id : ' C015EBF2XB6'
211
+ slack-message : ' Browser test job failed for ${{ github.base_ref }} branch failed on build ${{ github.event.after }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}'
212
+ env :
213
+ SLACK_BOT_TOKEN : ${{ secrets.ANGULAR_ROBOT_SLACK_TOKEN }}
0 commit comments