Skip to content

Commit

Permalink
try-runtime ci
Browse files Browse the repository at this point in the history
  • Loading branch information
f-gate committed Dec 4, 2023
1 parent 02c4434 commit cb0af94
Showing 1 changed file with 56 additions and 7 deletions.
63 changes: 56 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
machine_zone: ${{ env.GCP_ZONE }}
ephemeral: true

test-features:
needs: create-runner
cargo-fmt:
needs: create-runner
runs-on: ${{ needs.create-runner.outputs.label }}
steps:
- uses: actions/checkout@v4
Expand All @@ -51,15 +51,64 @@ jobs:
target: wasm32-unknown-unknown
override: true
components: rustfmt, clippy

- name: Install Dependencies
run: sudo apt install protobuf-compiler clang build-essential -y


- name: 🫠 rustfmt 🫠
uses: actions-rs/cargo@v1
with:
command: fmt
args: --check

test-features:
needs: create-runner
runs-on: ${{ needs.create-runner.outputs.label }}
steps:
- uses: actions/checkout@v4

- name: Set HOME
run: echo "HOME=/home/ubuntu" >> ${GITHUB_ENV}

- name: Install minimal nightly Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-22
target: wasm32-unknown-unknown
override: true

- name: Install Dependencies
run: sudo apt install protobuf-compiler clang build-essential -y

- name: Run tests with benchmarks
run: cargo test --features runtime-benchmarks
run: cargo test --features runtime-benchmarks

try-runtime:
needs: create-runner
runs-on: ${{ needs.create-runner.outputs.label }}
steps:
- uses: actions/checkout@v4

- name: Set HOME
run: echo "HOME=/home/ubuntu" >> ${GITHUB_ENV}

- name: Install minimal nightly Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2023-05-22
target: wasm32-unknown-unknown
override: true

- name: Install Dependencies
run: sudo apt install protobuf-compiler clang build-essential -y

- name: Install try-runtime cli
run: cargo install --git https://github.com/paritytech/try-runtime-cli --locked

- name: build with try-runtime
run: cargo build --release --features try-runtime

- name: try-runtime kusama
run: try-runtime --runtime target/release/wbuild/imbue-kusama-runtime/imbue_kusama_runtime.wasm on-runtime-upgrade live --uri ws://34.123.139.91:9942

- name: try-runtime rococo
run: try-runtime --runtime target/release/wbuild/imbue-kusama-runtime/imbue_kusama_runtime.wasm on-runtime-upgrade live --uri ws://35.202.116.137:9942

0 comments on commit cb0af94

Please sign in to comment.