diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f148e1478..499a29a904 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: IP_ADDRESS=$(curl https://ifconfig.me) echo "INFO: IP_ADDRESS=$IP_ADDRESS" - docker run -d -p 9933:9933 -p 30333:30333 gluwa/creditcoin \ + docker run --rm --name creditcoin-validator -d -p 9933:9933 -p 30333:30333 gluwa/creditcoin \ --validator --chain mainnet \ --name "test-node-$GITHUB_RUN_ID-attempt-$GITHUB_RUN_ATTEMPT" \ --public-addr "/dns4/$IP_ADDRESS/tcp/30333" \ @@ -45,6 +45,11 @@ jobs: sleep 60 ./scripts/check-health.sh + - name: Sanity test creditcoin-cli inside the container + run: | + docker exec creditcoin-validator which creditcoin-cli + docker exec creditcoin-validator creditcoin-cli wizard --help + - name: Kill the container run: | # this will also kill the parent container diff --git a/scripts/cc-cli/package.json b/scripts/cc-cli/package.json index 325e9fd9a4..e661950a9a 100644 --- a/scripts/cc-cli/package.json +++ b/scripts/cc-cli/package.json @@ -25,6 +25,7 @@ "author": "", "license": "ISC", "dependencies": { + "chalk": "^4.1.2", "cli-table3": "^0.6.3", "commander": "^11.1.0", "creditcoin-js": "file:../../creditcoin-js/creditcoin-js-v0.10.4.tgz", diff --git a/scripts/cc-cli/yarn.lock b/scripts/cc-cli/yarn.lock index eb17f0e20e..eb36c9cbb1 100644 --- a/scripts/cc-cli/yarn.lock +++ b/scripts/cc-cli/yarn.lock @@ -2170,7 +2170,7 @@ chalk@^2.0.0, chalk@^2.4.2: escape-string-regexp "^1.0.5" supports-color "^5.3.0" -chalk@^4.0.0: +chalk@^4.0.0, chalk@^4.1.2: version "4.1.2" resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==