From be3d1c1b77631ccbf3bcd48171e0eba9b6fea9b0 Mon Sep 17 00:00:00 2001 From: Ayoub Date: Wed, 25 Sep 2024 13:33:42 +0100 Subject: [PATCH] update the actions used in test-sui workflows --- .github/workflows/test-sui.yaml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test-sui.yaml b/.github/workflows/test-sui.yaml index 4286e804..c651a52c 100644 --- a/.github/workflows/test-sui.yaml +++ b/.github/workflows/test-sui.yaml @@ -36,18 +36,20 @@ jobs: uses: actions/checkout@v4 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: axelarnetwork/axelar-cgp-sui/.github/actions/setup-node@main with: - node-version: '18' - cache: 'npm' - - - name: Install dependencies - run: npm ci + nodejs-version: '18' # Hardcoded to ensure consistency. + - name: Get SUI Version + shell: bash + run: | + SUI_VERSION=$(jq -r '.SUI_VERSION' "node_modules/@axelar-network/axelar-cgp-sui/version.json") + echo "SUI_VERSION=$SUI_VERSION" >> $GITHUB_ENV + - name: Setup Sui CLI - uses: axelarnetwork/axelar-cgp-sui/.github/actions/install-sui-cli@main + uses: axelarnetwork/axelar-cgp-sui/.github/actions/setup-sui@main with: - sui-version: $(jq -r '.SUI_VERSION' node_modules/@axelar-network/axelar-cgp-sui/version.json) + sui-version: ${{ env.SUI_VERSION }} - name: Setup Sui Wallet shell: bash