Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Try Runtime

Actions
Runs try-runtime on the specified chain and runtime
v0.3.5
Star (7)

Tags

 (1)

Try Runtime Github Actions (docker based)

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.

Inputs

url

Required URL of the node to take a snapshot from.

snap

Path to a previsouly taken snapshot, if doesn't exists we will create it.

runtime

Required Path to a try-runtime enabled runtime to test migrations for.

You runtime must be compiled with try-runtime turned on.

checks

Checks to run, default to all.

Example Usage

uses: NodleCode/action-try-runtime
with:
  url: 'https://rpc.nodleprotocol.io'
  runtime: 'path/to/runtime.wasm'

Wishlist

  • set outputs to something useful if possible

Development

Upgrading to a another version of try-runtime

By convention please follow the release numbers from Parity's repo.

  1. Run the prebuild github action to pre-build try-runtime. Pass it the latest version from parity's repo (for example v0.3.5).
  2. Wait for the action to build succesfully, which will take a little while.
  3. Update the first line in the action Dockerfile to use the version number of the new prebuilt container (in this example v0.3.5).
  4. Draft a new github release for the same version number (v0.3.5 in this example).
  5. 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 rebuilt try-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.

About

Runs try-runtime on the specified chain and runtime
v0.3.5

Tags

 (1)

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.