substrate-docs icon indicating copy to clipboard operation
substrate-docs copied to clipboard

Add CI job to build Rust files

Open HCastano opened this issue 3 years ago • 1 comments

While updating the ink! tutorial I was manually building the code snippets and templates to check that they still compiled.

However, this is not something that should be done manually since it is tedious and error prone. Instead we should have a script which goes through everything and checks that it build successfully. This script should be required to pass as part of the CI workflow.

Ensuring snippets compile might be a little tricky, but at the very least we should start by checking that the x.x-finished-code.rs files compile correctly.

HCastano avatar Feb 23 '22 22:02 HCastano

This is part of a much larger goal: https://github.com/substrate-developer-hub/substrate-docs/issues/478 I agree it would be a great thing for all of devhub, requires a refactor: the code snippets all live within the context of the latest version of the (various) node templates.

nuke-web3 avatar Mar 03 '22 05:03 nuke-web3