Skip to content

Commit

Permalink
test: fix deploy-contract, lint checker
Browse files Browse the repository at this point in the history
  • Loading branch information
dudong2 committed Nov 29, 2023
1 parent 85e716d commit 91c9611
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 14 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy-contract.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: "1.21"
check-latest: true
- name: Use Node.js
uses: actions/setup-node@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
run: |-
echo 'GITHUB_TOKEN=${{secrets.GITHUB_TOKEN}}' > .release-env
- name: release publish
run: make release
run: make release
12 changes: 6 additions & 6 deletions scripts/proto-tools-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ f_abort() {
local l_rc=$1
shift

echo $@ >&2
exit ${l_rc}
echo "$@" >&2
exit "${l_rc}"
}

case "${UNAME_S}" in
Expand All @@ -33,7 +33,7 @@ esac

TEMPDIR="$(mktemp -d)"

trap "rm -rvf ${TEMPDIR}" EXIT
trap "rm -rvf '${TEMPDIR}'" EXIT

f_print_installing_with_padding() {
printf "Installing %30s ..." "$1" >&2
Expand All @@ -53,7 +53,7 @@ f_ensure_dirs() {
}

f_needs_install() {
if [ -x $1 ]; then
if [ -x "$1" ]; then
echo -e "\talready installed. Skipping." >&2
return 1
fi
Expand All @@ -67,8 +67,8 @@ f_install_protoc() {

pushd "${TEMPDIR}" >/dev/null
curl -o "${PROTOC_ZIP}" -sSL "https://github.com/protocolbuffers/protobuf/releases/download/v${PROTOC_VERSION}/${PROTOC_ZIP}"
unzip -q -o ${PROTOC_ZIP} -d ${DESTDIR}/${PREFIX} bin/protoc; \
unzip -q -o ${PROTOC_ZIP} -d ${DESTDIR}/${PREFIX} 'include/*'; \
unzip -q -o ${PROTOC_ZIP} -d "${DESTDIR}"/${PREFIX} bin/protoc; \
unzip -q -o ${PROTOC_ZIP} -d "${DESTDIR}"/${PREFIX} 'include/*'; \
rm -f ${PROTOC_ZIP}
popd >/dev/null
f_print_done
Expand Down
16 changes: 9 additions & 7 deletions tests/integration_tests/test_upgrade.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,13 @@ def test_cosmovisor_upgrade(custom_ethermint: Ethermint):
assert old_erc20_balance == contract.caller(
block_identifier=target_height - 2
).balanceOf(ADDRS["validator"])
p = json.loads(cli.raw(
"query",
"ibc",
"client",
"params",
home=cli.data_dir,
))
p = json.loads(
cli.raw(
"query",
"ibc",
"client",
"params",
home=cli.data_dir,
)
)
assert p == {"allowed_clients": ["06-solomachine", "07-tendermint", "09-localhost"]}

0 comments on commit 91c9611

Please sign in to comment.