-
Notifications
You must be signed in to change notification settings - Fork 2.1k
46 lines (43 loc) · 1.22 KB
/
callable-canary-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
name: 'Canary E2E Tests'
on:
workflow_call:
env:
WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
jobs:
prebuild-ubuntu:
uses: ./.github/workflows/callable-prebuild-amplify-js.yml
with:
runs_on: ubuntu-latest
prebuild-macos:
uses: ./.github/workflows/callable-prebuild-amplify-js.yml
with:
runs_on: macos-latest
prebuild-samples-staging:
secrets: inherit
uses: ./.github/workflows/callable-prebuild-samples-staging.yml
e2e:
needs:
- prebuild-macos
- prebuild-ubuntu
- prebuild-samples-staging
secrets: inherit
uses: ./.github/workflows/callable-canary-e2e-runner.yml
sample-app-tests:
secrets: inherit
uses: ./.github/workflows/callable-canary-sampleapp-tests.yml
slack-alert:
needs:
- e2e
- sample-app-tests
runs-on: ubuntu-latest
if: failure()
steps:
- name: Send slack message
env:
WORKFLOW_URL: '{ "URL": "${{ env.WORKFLOW_URL }}" }'
WEBHOOK_URL: ${{ env.WEBHOOK_URL }}
run: |
curl -X POST -H "Content-Type: application/json" \
--data "$WORKFLOW_URL" \
$WEBHOOK_URL