-
Notifications
You must be signed in to change notification settings - Fork 25
533 lines (517 loc) · 23 KB
/
e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
name: E2E
on:
merge_group:
types: [checks_requested]
pull_request_target:
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref_name || github.event.ref }}
cancel-in-progress: true
env:
CYPRESS_VERIFY_TIMEOUT: 120000
GH_PAGES_OWNER: blackbaud
NX_CLOUD_DISTRIBUTED_EXECUTION: 'false'
NX_REJECT_UNKNOWN_LOCAL_CACHE: '0'
PERCY_BROWSER_EXECUTABLE: /usr/bin/chromium
PERCY_COMMIT: ${{ github.sha }}
PERCY_SKIP_UPDATE_CHECK: 'true'
PUPPETEER_EXECUTABLE_PATH: /usr/bin/chromium
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: 'true'
SB_CHROMIUM_PATH: /usr/bin/chromium
jobs:
install-deps:
name: Install and cache dependencies
if: ${{ !startsWith( github.head_ref || github.ref_name, 'release-please--' ) && !contains( github.event.pull_request.labels.*.name, 'skip e2e' ) }}
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-install-deps-${{ github.head_ref || github.ref_name || github.event.ref }}
cancel-in-progress: true
outputs:
node-version: ${{ steps.setup-node.outputs.node-version }}
parameters: ${{ steps.parameters.outputs.parameters }}
pr-number: ${{ steps.set-shas.outputs.pr-number }}
pr-labels: ${{ steps.set-shas.outputs.pr-labels }}
base: ${{ steps.set-shas.outputs.base }}
base-branch: ${{ steps.set-shas.outputs.base-branch }}
head: ${{ steps.set-shas.outputs.head }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.head_ref || github.ref_name || github.event.ref }}
- uses: actions/setup-node@v4
id: setup-node
with:
node-version-file: '.nvmrc'
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
- name: Cache dependencies
id: cache
uses: actions/cache@v4
with:
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ steps.setup-node.outputs.node-version }}-modules-${{ hashFiles('package-lock.json') }}
- name: npm install
if: steps.cache.outputs.cache-hit != 'true'
run: npm ci
- name: Derive appropriate SHAs for base and head for `nx affected` commands
id: set-shas
uses: ./.github/actions/nx-set-shas
with:
workflow-id: e2e.yml
env:
GITHUB_TOKEN: ${{secrets.GH_PERSONAL_ACCESS_TOKEN}}
- name: Set workflow parameters
id: parameters
shell: bash
run: |
set -exo pipefail
if [ "${GITHUB_EVENT_NAME}" == "workflow_dispatch" ]; then
echo -n parameters= >> $GITHUB_OUTPUT
npx skyux-dev e2e-workflow --workflowTrigger=pull_request --pr=${{ steps.set-shas.outputs.pr-number }} >> $GITHUB_OUTPUT
else
echo -n parameters= >> $GITHUB_OUTPUT
npx skyux-dev e2e-workflow --pr=${{ steps.set-shas.outputs.pr-number }} >> $GITHUB_OUTPUT
fi
- name: Show workflow parameters
run: |
echo 'Using workflow parameters:'
echo ''
echo '${{ steps.parameters.outputs.parameters }}' | jq
- name: Cache e2e-schematics
uses: actions/cache@v4
id: cache-e2e-schematics
with:
path: ./dist/libs/sdk/e2e-schematics
key: e2e-schematics-${{ runner.os }}-${{ github.head_ref || github.ref_name || github.event.ref }}
- name: Build e2e-schematics
# Used by .github/actions/e2e-affected/action.yml
if: steps.cache-e2e-schematics.outputs.cache-hit != 'true'
shell: bash
run: |
npx nx build e2e-schematics --no-parallel
build-storybook:
name: Build Project Storybook
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-build-storybook--${{ matrix.project }}-${{ github.head_ref || github.ref_name || github.event.ref }}
cancel-in-progress: true
needs: install-deps
strategy:
# If one build fails, do not cancel other builds.
fail-fast: false
matrix:
project: ${{ fromJSON(needs.install-deps.outputs.parameters).projects }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.head_ref || github.ref_name || github.event.ref }}
if: ${{ matrix.project != 'skip' }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
if: ${{ matrix.project != 'skip' }}
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
if: ${{ matrix.project != 'skip' }}
- name: Retrieve dependencies cache
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ needs.install-deps.outputs.node-version }}-modules-${{ hashFiles('package-lock.json') }}
if: ${{ matrix.project != 'skip' }}
- name: Retrieve build-storybook-cache
uses: actions/cache@v4
with:
path: .nx/cache
key: build-storybook-${{ matrix.project }}-${{ runner.os }}-${{ github.head_ref || github.ref_name || github.event.ref }}
restore-keys: build-storybook-${{ matrix.project }}-${{ runner.os }}-
if: ${{ matrix.project != 'skip' }}
- name: Build ${{ matrix.project }}
run: npx nx run ${{ matrix.project }}:build-storybook:ci --no-parallel
if: ${{ matrix.project != 'skip' }}
- name: Upload storybook artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.project }}
path: ./dist/storybook/${{ matrix.project }}
retention-days: 1
if-no-files-found: error
if: ${{ matrix.project != 'skip' }}
- name: Skip
run: |
echo 'No storybook to build'
if: ${{ matrix.project == 'skip' }}
build-apps:
name: Build Apps
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-build-apps--${{ matrix.app }}-${{ github.head_ref || github.ref_name || github.event.ref }}
cancel-in-progress: true
needs: install-deps
strategy:
# If one build fails, do not cancel other builds.
fail-fast: false
matrix:
app:
- code-examples
- integration
- playground
# - dep-graph
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.head_ref || github.ref_name || github.event.ref }}
if: ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo == 'skyux-pr-preview' }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
if: ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo == 'skyux-pr-preview' }}
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
if: ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo == 'skyux-pr-preview' }}
- name: Retrieve dependencies cache
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ needs.install-deps.outputs.node-version }}-modules-${{ hashFiles('package-lock.json') }}
if: ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo == 'skyux-pr-preview' }}
- name: Retrieve build-${{ matrix.app }}-cache
uses: actions/cache@v4
with:
path: .nx/cache
key: build-${{ matrix.app }}-${{ runner.os }}-${{ github.head_ref || github.ref_name || github.event.ref }}
restore-keys: build-${{ matrix.app }}-${{ runner.os }}-
- name: Build ${{ matrix.app }}
run: |
npx nx build ${{ matrix.app }} \
--baseHref="https://blackbaud.github.io/skyux-pr-preview/${{ needs.install-deps.outputs.pr-number }}/${{ matrix.app }}/" \
--no-parallel
if: ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo == 'skyux-pr-preview' && matrix.app != 'dep-graph' }}
- name: Build ${{ matrix.app }}
run: npx nx dep-graph --file=dist/apps/dep-graph/index.html
if: ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo == 'skyux-pr-preview' && matrix.app == 'dep-graph' }}
- name: Upload app artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.app }}
path: ./dist/apps/${{ matrix.app }}
retention-days: 1
if-no-files-found: error
if: ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo == 'skyux-pr-preview' }}
- name: Skip
run: echo "Skip building ${{ matrix.app }} app. Only Storybook is published on branch builds."
if: ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo != 'skyux-pr-preview' }}
publish:
name: Publish
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-publish-${{ github.head_ref || github.ref_name || github.event.ref }}
cancel-in-progress: true
needs:
- install-deps
- build-storybook
- build-apps
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.head_ref || github.ref_name || github.event.ref }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
- name: Retrieve dependencies cache
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ needs.install-deps.outputs.node-version }}-modules-${{ hashFiles('package-lock.json') }}
- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: ./dist/${{ fromJson(needs.install-deps.outputs.parameters).storybooksPath }}
- name: Move apps
# All the artifacts are downloaded into one folder, so we need to move them into the correct folders.
if: ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo == 'skyux-pr-preview' }}
# Setting the shell so this step can run as-is on Windows or Linux.
shell: bash
run: |
mkdir -p ./dist/apps
for app in code-examples dep-graph integration playground
do
if [ -d "./dist/${{ fromJson(needs.install-deps.outputs.parameters).storybooksPath }}${app}" ]
then
mv ./dist/${{ fromJson(needs.install-deps.outputs.parameters).storybooksPath }}${app} ./dist/apps/$app
fi
done
# Do not include any percy logs.
rm -rf ./dist/${{ fromJson(needs.install-deps.outputs.parameters).storybooksPath }}percy-*
- name: Generate Storybook Composition
shell: bash
run: |
npx nx g @skyux-sdk/e2e-schematics:storybook-composition \
--projectsJson='${{ fromJson(needs.install-deps.outputs.parameters).projectsJson }}' \
--baseUrl='../${{ fromJson(needs.install-deps.outputs.parameters).storybooksPath }}'
- name: Build Storybook Composition
run: npx nx run storybook:build-storybook:ci --outputDir=dist/storybook --no-parallel
- name: Checkout ${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo }}
uses: actions/checkout@v4
with:
repository: ${{ env.GH_PAGES_OWNER }}/${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo }}
ref: 'main'
fetch-depth: 1
path: ./dist/${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo }}
token: ${{secrets.GH_PERSONAL_ACCESS_TOKEN}}
- name: Publish preview and comment on PR
run: |
npx skyux-dev publish-storybook \
--workingDirectory=./dist/${{ fromJson(needs.install-deps.outputs.parameters).ghPagesRepo }} \
--pr=${{ needs.install-deps.outputs.pr-number }}
env:
GITHUB_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
e2e:
name: End to end tests
runs-on: ubuntu-latest
# Baseline branches should complete the E2E jobs so Percy does not get stuck https://www.browserstack.com/question/61332
concurrency:
group: ${{ github.workflow }}-e2e--${{ matrix.project }}-${{ github.head_ref || format('{0}-{1}', github.run_id, github.run_attempt) }}
cancel-in-progress: true
needs: install-deps
strategy:
fail-fast: false
matrix:
include: ${{ fromJSON(needs.install-deps.outputs.parameters).e2eTargets }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.head_ref || github.ref_name || github.event.ref }}
if: ${{ matrix.project != 'skip' }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
if: ${{ matrix.project != 'skip' }}
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
if: ${{ matrix.project != 'skip' }}
- name: Retrieve dependencies cache
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ needs.install-deps.outputs.node-version }}-modules-${{ hashFiles('package-lock.json') }}
if: ${{ matrix.project != 'skip' }}
- name: Cache e2e-schematics
uses: actions/cache/restore@v4
with:
path: ./dist/libs/sdk/e2e-schematics
key: e2e-schematics-${{ runner.os }}-${{ github.head_ref || github.ref_name || github.event.ref }}
- name: Check if ${{ matrix.project }} is affected
if: ${{ matrix.project != 'skip' }}
uses: ./.github/actions/e2e-affected
id: affected
with:
branch: ${{ github.head_ref || github.ref_name || github.event.ref }}
base: ${{ needs.install-deps.outputs.base }}
head: ${{ needs.install-deps.outputs.head }}
project: ${{ matrix.project }}
percy-token: ${{ secrets.PERCY_API }}
allow-deleted-screenshots: ${{ contains( fromJSON( needs.install-deps.outputs.pr-labels ), 'screenshot removed' ) }}
- name: Verify Cypress
run: npx cypress verify
if: ${{ matrix.project != 'skip' && steps.affected.outputs.affected == 'true' }}
- name: Percy ${{ matrix.project }}
shell: bash
run: |
set +e
set +o pipefail
echo '# PERCY_TARGET_BRANCH' $PERCY_TARGET_BRANCH
echo '# PERCY_TARGET_COMMIT' $PERCY_TARGET_COMMIT
# Timing setting recommended by https://docs.percy.io/docs/cypress#missing-assets
npx percy exec -t 350 -- nx e2e ${{ matrix.project }} -c ci --no-parallel 2>&1 | tee ${{ runner.temp }}/percy-${{ matrix.project }}.log
RESULT=$?
FINALIZED=$(grep -cE '^\[percy] Finalized build ' ${{ runner.temp }}/percy-${{ matrix.project }}.log)
if [ $RESULT -ne 0 ] || [ $FINALIZED -eq 0 ]; then
echo "Percy failed with exit code $RESULT"
RETRY=$(grep -cE '(This is likely a client error|Error: Can only finalize pending builds|Module loop: this module is already being loaded|Failed to connect to the bus: Could not parse server address: Unknown address type)' ${{ runner.temp }}/percy-${{ matrix.project }}.log)
if [ $RETRY -gt 0 ] || [ $FINALIZED -eq 0 ]; then
echo "Percy client error. Retrying..."
set -eo pipefail
npx percy exec -t 350 -- nx e2e ${{ matrix.project }} -c ci --no-parallel 2>&1 | tee ${{ runner.temp }}/percy-${{ matrix.project }}.log
else
exit 1
fi
fi
# Extract the Percy build number from the log
fgrep '[percy] Finalized build' ${{ runner.temp }}/percy-${{ matrix.project }}.log | node -e "const rl=require('readline').createInterface({ input: process.stdin }); rl.on('line', (input) => console.log(input.split('/').pop()))" > ${{ runner.temp }}/percy-build-${{ matrix.project }}.txt
env:
PERCY_TARGET_BRANCH: ${{ needs.install-deps.outputs.base-branch }}
PERCY_TARGET_COMMIT: ${{ steps.affected.outputs.percy_target_commit }}
PERCY_BRANCH: ${{ github.head_ref || github.ref_name || github.event.ref }}
PERCY_COMMIT: ${{ needs.install-deps.outputs.head }}
PERCY_TOKEN: ${{ secrets[matrix.token] }}
TERM: 'xterm-256color'
if: ${{ matrix.project != 'skip' && steps.affected.outputs.affected == 'true' }}
- name: Upload logs
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: percy-log-${{ matrix.project }}.log
path: ${{ runner.temp }}/percy-log-${{ matrix.project }}.log
retention-days: 4
- name: Upload build number
uses: actions/upload-artifact@v4
with:
name: percy-build-${{ matrix.project }}.txt
path: ${{ runner.temp }}/percy-build-${{ matrix.project }}.txt
retention-days: 1
- name: Upload error screenshots
uses: actions/upload-artifact@v4
if: ${{ failure() }}
with:
name: cypress-screenshots-${{ matrix.project }}
path: ./dist/cypress/${{ matrix.root }}/screenshots
retention-days: 4
- name: Skip
run: |
echo "Skip E2E. No E2E changes detected."
if: ${{ matrix.project == 'skip' }}
verify:
name: E2E Visual Review
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-verify-${{ github.head_ref || github.ref_name || github.event.ref }}
cancel-in-progress: false
needs:
- install-deps
- e2e
- publish
if: ${{ always() && !startsWith( github.head_ref || github.ref_name, 'release-please--' ) && !contains( github.event.pull_request.labels.*.name, 'skip e2e' ) }}
steps:
- uses: actions/github-script@v7
if: ${{ job.status == 'cancelled' || contains(needs.*.result, 'cancelled') }}
with:
script: 'core.setFailed("Cancelled.");'
- uses: actions/github-script@v7
if: ${{ contains(needs.*.result, 'skipped') }}
with:
script: 'core.setFailed("Skipped a step.");'
- uses: actions/github-script@v7
if: ${{ contains(needs.*.result, 'failure') }}
with:
script: 'core.setFailed("Failed.");'
- uses: actions/checkout@v4
with:
fetch-depth: 0
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ github.head_ref || github.ref_name || github.event.ref }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- name: Rebase current branch
run: node ./scripts/rebase-pr.js
- name: Retrieve dependencies cache
uses: actions/cache/restore@v4
with:
fail-on-cache-miss: true
path: |
node_modules
/home/runner/.cache/Cypress
key: ${{ runner.os }}-node-${{ needs.install-deps.outputs.node-version }}-modules-${{ hashFiles('package-lock.json') }}
- name: Cache e2e-schematics
uses: actions/cache/restore@v4
with:
path: ./dist/libs/sdk/e2e-schematics
key: e2e-schematics-${{ runner.os }}-${{ github.head_ref || github.ref_name || github.event.ref }}
- name: Download Percy Build Numbers
uses: actions/download-artifact@v4
with:
path: ${{ runner.temp }}/percy-builds
pattern: percy-build-*
merge-multiple: true
- uses: actions/github-script@v7
name: Verify E2E Visual Review
id: verify-e2e
with:
github-token: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
script: |
const anyFailures = ${{ contains(needs.*.outcome, 'failure') }};
if (anyFailures) {
core.setFailed(`Job failed. Skipping visual review.`);
} else {
const e2eProjects = ${{ needs.install-deps.outputs.parameters }}.e2eTargets.map(project => project.project);
const { verifyE2e } = require('./dist/libs/sdk/e2e-schematics/src/workflow');
const options = {
method: 'GET',
headers: {
Authorization: 'Token ${{ secrets.PERCY_API }}'
}
};
const listJobsForWorkflowRun = () => github.paginate('GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs', {
owner: context.repo.owner,
repo: context.repo.repo,
run_id: context.runId,
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
});
await verifyE2e(
e2eProjects,
'${{ runner.temp }}/percy-builds',
core,
{
listJobsForWorkflowRun: listJobsForWorkflowRun
},
${{ github.event_name == 'push' || contains( fromJSON( needs.install-deps.outputs.pr-labels ), 'screenshot removed' ) }},
(url) => fetch(url, options),
(number) => process.exit(number)
);
}
- name: Notify Slack (failure)
if: ${{ failure() && !steps.verify-e2e.outputs.missingScreenshots }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: 'fail'
SLACK_MESSAGE: 'E2E job failed on `${{ github.head_ref || github.ref_name }}` branch, details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'
SLACK_ICON_EMOJI: ':github:'
SLACK_USERNAME: GitHub
#cor-skyux-notifications
SLACK_CHANNEL: C01GY7ZP4HM
SLACK_FOOTER: 'Blackbaud Sky Build User'
- name: Notify Slack (missing screenshots)
if: ${{ failure() && steps.verify-e2e.outputs.missingScreenshots }}
uses: rtCamp/action-slack-notify@v2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_COLOR: 'fail'
SLACK_MESSAGE: 'E2E missing screenshots on `${{ github.head_ref || github.ref_name }}` branch, details: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} 🧐 ${{ steps.verify-e2e.outputs.missingScreenshots }}'
SLACK_ICON_EMOJI: ':github:'
SLACK_USERNAME: GitHub
#cor-skyux-notifications
SLACK_CHANNEL: C01GY7ZP4HM
SLACK_FOOTER: 'Blackbaud Sky Build User'