This action uses try-runtime-cli
to test your runtime migrations.
It will expect to have a snapshot passed as an argument and otherwise will take it for you if it doesn't exists yet.
Required URL of the node to take a snapshot from.
Path to a previsouly taken snapshot, if doesn't exists we will create it.
Required Path to a try-runtime enabled runtime to test migrations for.
You runtime must be compiled with
try-runtime
turned on.
Checks to run, default to all
.
uses: NodleCode/action-try-runtime
with:
url: 'https://rpc.nodleprotocol.io'
runtime: 'path/to/runtime.wasm'
- set outputs to something useful if possible
By convention please follow the release numbers from Parity's repo.
- Run the prebuild github action to pre-build
try-runtime
. Pass it the latest version from parity's repo (for examplev0.3.5
). - Wait for the action to build succesfully, which will take a little while.
- Update the first line in the action
Dockerfile
to use the version number of the new prebuilt container (in this examplev0.3.5
). - Draft a new github release for the same version number (
v0.3.5
in this example). - You may now use the newly release and built action in your CI/CD pipeline.
We prebuild a docker container with
try-runtime
to ensure Github does not rebuilttry-runtime
everytime we use this action, thus giving us a nice speed improvement.
Try Runtime is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.