feat: adds fallbackChainApiClient #3244
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Indexer CI" | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| should-validate: | |
| name: Decide Whether to Validate | |
| uses: ./.github/workflows/reusable-should-validate.yml | |
| with: | |
| path: apps/indexer | |
| validate: | |
| needs: should-validate | |
| if: needs.should-validate.outputs.enabled == 'true' | |
| uses: ./.github/workflows/reusable-validate-app.yml | |
| secrets: inherit | |
| with: | |
| app: indexer | |
| 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 indexer | |
| indexer-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 |