Skip to content

feat: adds fallbackChainApiClient #2728

feat: adds fallbackChainApiClient

feat: adds fallbackChainApiClient #2728

name: "Notifications CI"
on:
pull_request:
branches: ["main"]
push:
branches: ["main"]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
should-validate:
name: Decide Whether to Validate
uses: ./.github/workflows/reusable-should-validate.yml
with:
path: apps/notifications
validate:
needs: should-validate
if: needs.should-validate.outputs.enabled == 'true'
uses: ./.github/workflows/reusable-validate-app.yml
secrets: inherit
with:
app: notifications
test-build:
runs-on: ubuntu-latest
needs: should-validate
if: needs.should-validate.outputs.has_changes == 'true'
steps:
- uses: actions/checkout@v4
- run: packages/docker/script/dc.sh build notifications
notifications-ci:
runs-on: ubuntu-latest
needs: [should-validate, validate, test-build]
if: always()
steps:
- name: Check statuses
if: needs.should-validate.outputs.has_changes == 'true'
env:
VALIDATE_RESULT: ${{ needs.validate.result }}
TEST_BUILD_RESULT: ${{ needs.test-build.result }}
run: |
echo "Validate: $VALIDATE_RESULT"
echo "Test Build: $TEST_BUILD_RESULT"
if [[ "$VALIDATE_RESULT" != "success" || "$TEST_BUILD_RESULT" != "success" ]]; then
exit 1
fi