diff --git a/.github/workflows/test-sui.yaml b/.github/workflows/test-sui.yaml index 4286e804..522e6dc7 100644 --- a/.github/workflows/test-sui.yaml +++ b/.github/workflows/test-sui.yaml @@ -38,16 +38,24 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '18' + node-version: '18' # Hardcoded to ensure consistency. cache: 'npm' + registry-url: 'https://registry.npmjs.org' - name: Install dependencies + shell: bash run: npm ci + - 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