Skip to content

Commit

Permalink
test: add test depending on aggregator capabilities in test-client.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dlachaume committed Feb 21, 2024
1 parent e1f37ee commit 2dbec31
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/test-client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
matrix:
os: [ ubuntu-22.04, macos-12, windows-latest ]
runs-on: ${{ matrix.os }}
env:
CTX_AGGREGATOR_CAPABILITY: false
steps:
- name: Checkout sources
uses: actions/checkout@v3
Expand All @@ -69,6 +71,10 @@ jobs:
echo "NETWORK=${{ inputs.network }}" >> $GITHUB_ENV
echo "AGGREGATOR_ENDPOINT=${{ inputs.aggregator_endpoint }}" >> $GITHUB_ENV
echo "GENESIS_VERIFICATION_KEY=$(curl -s ${{ inputs.genesis_verification_key }})" >> $GITHUB_ENV
echo "TRANSACTIONS_HASHES_TO_CERTIFY=${{ inputs.transactions_hashes_to_certify }}" >> $GITHUB_ENV
CTX_AGGREGATOR_CAPABILITY=$(wget -q -O - https://aggregator.testing-sanchonet.api.mithril.network/aggregator | jq '.capabilities.signed_entity_types | contains(["CardanoTransactions"])')
echo "CTX_AGGREGATOR_CAPABILITY => $CTX_AGGREGATOR_CAPABILITY"
- name: Checkout binary
uses: dawidd6/action-download-artifact@v2
Expand Down Expand Up @@ -114,6 +120,12 @@ jobs:
working-directory: ./bin
run: ./mithril-client ${{ steps.prepare.outputs.debug_level }} mithril-stake-distribution download $MITHRIL_STAKE_DISTRIBUTION_HASH

- name: Cardano transaction certify
if: ${{ env.CTX_AGGREGATOR_CAPABILITY == 'true' }}
shell: bash
working-directory: ./bin
run: ./mithril-client ${{ steps.prepare.outputs.debug_level }} cardano-transaction certify $TRANSACTIONS_HASHES_TO_CERTIFY

test-docker:
strategy:
fail-fast: false
Expand Down

0 comments on commit 2dbec31

Please sign in to comment.