Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Mount contract dir in e2e tests (for the metadata)
  • Loading branch information
obrok committed Dec 21, 2022
commit b6581d4d97b2e15c2504943a00a4efb6fa9515c4
1 change: 0 additions & 1 deletion .github/actions/run-e2e-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ runs:
if [[ "${DEPLOY_ADDER}" = "true" ]]; then
pushd contracts/adder
export ADDER=$(./deploy.sh)
export ADDER_METADATA=$(pwd)/target/ink/metadata.json
popd
fi

Expand Down
4 changes: 2 additions & 2 deletions .github/scripts/run_e2e_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ fi

if [[ -n "${ADDER:-}" ]]; then
ARGS+=(-e "ADDER=${ADDER}")
ARGS+=(-e "ADDER_METADATA=${ADDER_METADATA}")
ARGS+=(-e "ADDER_METADATA=/contracts/adder/target/ink/metadata.json")
fi

docker run -v $(pwd)/docker/data:/data "${ARGS[@]}" aleph-e2e-client:latest
docker run -v "$(pwd)/contracts:/contracts" -v "$(pwd)/docker/data:/data" "${ARGS[@]}" aleph-e2e-client:latest

exit $?