-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.5 KB
/
check-frontend.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
name: Check Frontend Web App
on:
push:
branches:
- development
paths:
- 'web/**'
pull_request:
branches:
- development
paths:
- 'web/**'
jobs:
format:
name: Check Format
uses: ./.github/workflows/format.yml
secrets: inherit
lint:
name: Check Linting
uses: ./.github/workflows/lint.yml
secrets: inherit
unit-test:
name: Unit Tests
uses: ./.github/workflows/tests-unit-js.yml
secrets: inherit
e2e-test:
name: E2E Tests
uses: ./.github/workflows/tests-e2e.yml
secrets: inherit
deploy:
name: Deploy to Cloudflare
uses: ./.github/workflows/deploy-ipfs.yml
secrets: inherit
if: github.event_name == 'push'
needs:
- unit-test
- e2e-test
notify-twist:
runs-on: ubuntu-latest
needs:
- unit-test
- e2e-test
- deploy
if: ${{ needs.unit-test.result == 'failure' || needs.e2e-test.result == 'failure' || needs.deploy.result == 'failure' }}
steps:
- name: Send failure notification to Twist
run: |
curl -X POST ${{ secrets.SPN_TWIST_CI_ERRORS }} \
-H "Content-Type: application/json" \
-d '{
"content": "Deployment failed for commit: **${{ github.event.head_commit.message }}** on branch **${{ github.ref_name }}**"
}'