-
Notifications
You must be signed in to change notification settings - Fork 5
74 lines (65 loc) · 2.04 KB
/
on-master-branch-commit.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
---
name: Master branch commit
on:
push:
branches:
- master
- MOST-192
jobs:
check-vars-and-secrets:
name: Check vars and secrets
uses: ./.github/workflows/_check-vars-and-secrets.yml
secrets: inherit
compile-contracts-and-deploy-to-devenv:
needs: [check-vars-and-secrets]
name: Compile contracts and deploy to devenv
uses: ./.github/workflows/contracts-compile-and-deploy-to-testnet.yml
secrets: inherit
test-azero-contracts:
needs: [check-vars-and-secrets]
uses: ./.github/workflows/test-azero-contracts.yml
test-eth-contracts:
needs: [check-vars-and-secrets]
uses: ./.github/workflows/test-eth-contracts.yml
build-l1-relayer:
needs:
- test-eth-contracts
- test-azero-contracts
- compile-contracts-and-deploy-to-devenv
name: Build L1 relayer
uses: ./.github/workflows/l1-relayer-build.yml
secrets: inherit
build-l2-relayer:
needs:
- test-eth-contracts
- test-azero-contracts
- compile-contracts-and-deploy-to-devenv
name: Build L2 relayer
uses: ./.github/workflows/l2-relayer-build.yml
secrets: inherit
check-pipeline-completion:
needs: [build-l1-relayer,
build-l2-relayer]
name: Check pipeline completion
if: ${{ !cancelled() }}
runs-on: ubuntu-latest
steps:
- name: All nightly tests completed
run: |
# due to the fact GitHub treats skipped jobs as success, and when any of dependant
# jobs fail, this check will be skipped, we need to check status manually
jq --exit-status 'all(.result == "success")' <<< '${{ toJson(needs) }}'
slack:
name: Slack notification
runs-on: ubuntu-latest
needs: [check-pipeline-completion]
if: >
!cancelled() &&
github.event_name != 'workflow_dispatch'
steps:
- name: Send Slack message
uses: Cardinal-Cryptography/github-actions/slack-notification@v7
with:
notify-on: "failure"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_DEV_ONDUTY }}