Skip to content

Testing

Testing #323

---
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 }}