-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: reuse workflow from axelar-cgp-sui
- Loading branch information
Showing
2 changed files
with
19 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,25 +35,19 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Node.js | ||
uses: useblacksmith/setup-node@v5 | ||
with: | ||
node-version: 18.x | ||
cache: 'npm' | ||
|
||
- name: Install | ||
run: npm ci | ||
- name: Setup Sui CLI and install dependencies | ||
uses: axelarnetwork/axelar-cgp-sui/.github/actions/install/[email protected] | ||
|
||
- name: Read SUI_VERSION from JSON | ||
id: read-json | ||
- name: Setup Sui Wallet | ||
shell: bash | ||
run: | | ||
SUI_VERSION=$(jq -r '.SUI_VERSION' sui/version.json) | ||
echo "SUI_VERSION=${SUI_VERSION}" >> $GITHUB_ENV | ||
- name: Setup Sui CLI and install dependencies | ||
uses: ./.github/actions/setup-sui | ||
with: | ||
SUI_VERSION: ${{ env.SUI_VERSION }} | ||
echo -e "y\n\n1" | sui client envs | ||
sui client new-address secp256k1 wallet | ||
sui client switch --address wallet | ||
SUI_PRIVATE_KEY=$(sui keytool export --key-identity wallet --json | jq .exportedPrivateKey | sed 's/"//g') | ||
SUI_ADDRESS=$(sui keytool export --key-identity wallet --json | jq .key.suiAddress | sed 's/"//g') | ||
echo "SUI_PRIVATE_KEY=${SUI_PRIVATE_KEY}" >> $GITHUB_ENV | ||
echo "SUI_ADDRESS=${SUI_ADDRESS}" >> $GITHUB_ENV | ||
- name: Spin up Sui Network | ||
# sui-test-validator will be deprecated in the future. | ||
|