Skip to content

Commit

Permalink
set the release profile on CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
raulk committed Aug 24, 2024
1 parent 9c9887e commit 0cc6ddb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests-e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ jobs:
shared-key: build

- name: Run e2e tests
run: cd fendermint && PROFILE=ci make e2e-only
run: cd fendermint && PROFILE=release make e2e-only

11 changes: 7 additions & 4 deletions fendermint/testing/smoke-test/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ env_files = [
{ path = "../scripts/ci.env", profile = "ci" },
]

[env]
PROFILE = { value = "dev", condition = { env_not_set = ["PROFILE"] } }

[tasks.test-data-env]
script = """
cat << EOF > ${TEST_DATA_DIR}/.env
Expand All @@ -39,7 +42,7 @@ dependencies = [
[tasks.simplecoin-example]
script = """
cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/fendermint
cargo run -p fendermint_rpc --example simplecoin -- \
cargo run --profile ${PROFILE} -p fendermint_rpc --example simplecoin -- \
--secret-key testing/smoke-test/test-data/keys/alice.sk \
${VERBOSITY}
"""
Expand All @@ -48,7 +51,7 @@ cargo run -p fendermint_rpc --example simplecoin -- \
[tasks.transfer-example]
script = """
cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/fendermint
cargo run -p fendermint_rpc --example transfer -- \
cargo run --profile ${PROFILE} -p fendermint_rpc --example transfer -- \
--secret-key testing/smoke-test/test-data/keys/eric.sk \
${VERBOSITY}
"""
Expand All @@ -57,15 +60,15 @@ cargo run -p fendermint_rpc --example transfer -- \
[tasks.ethers-example]
script = """
cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/fendermint
cargo run -p fendermint_eth_api --example ethers -- \
cargo run --profile ${PROFILE} -p fendermint_eth_api --example ethers -- \
--secret-key-from testing/smoke-test/test-data/keys/emily.sk \
--secret-key-to testing/smoke-test/test-data/keys/eric.sk
"""

[tasks.query-blockhash-example]
script = """
cd ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/fendermint
cargo run -p fendermint_eth_api --example query_blockhash -- \
cargo run --profile ${PROFILE} -p fendermint_eth_api --example query_blockhash -- \
--secret-key testing/smoke-test/test-data/keys/emily.sk \
${VERBOSITY}
"""

0 comments on commit 0cc6ddb

Please sign in to comment.