From 8f2367f929ec4fd6232d6bdaef9d1ec1a4b7c23b Mon Sep 17 00:00:00 2001 From: Alex Todorov Date: Fri, 15 Dec 2023 17:11:46 +0200 Subject: [PATCH] Add test for creditcoin-cli inside the container --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4f148e1478..f43a3bd8ad 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 --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