Skip to content

Commit

Permalink
Add Subxt CI job (#2639)
Browse files Browse the repository at this point in the history
* script v1

* update moonwall

* new ts script and CI

* prettier

* fix rustc version for licenses

* add more reviewers

* removed shell script

* Update release GHA

* tidied logging

* updated release template

* Updated subxt CI
  • Loading branch information
timbrinded authored Feb 12, 2024
1 parent 0852a18 commit 755d495
Show file tree
Hide file tree
Showing 7 changed files with 839 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/check-licenses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
override: true
- name: Verify Licenses
run: |
cargo install cargo-license
Expand Down
50 changes: 50 additions & 0 deletions .github/workflows/subxt-diff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: Subxt Diff
on:
workflow_dispatch:
inputs:
spec_version:
description: runtime spec version (ex. 1601)
required: true

jobs:
local-diff:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Use pnpm
uses: pnpm/action-setup@v2
with:
version: 8.6.12
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
override: true
- name: Install Subxt-cli
run: |
cargo install subxt-cli
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 20.10.0
cache: "pnpm"
cache-dependency-path: test/pnpm-lock.yaml
- name: Run Diffs
run: |
cd test
pnpm install
pnpm tsx scripts/subxt-diff.ts diff moonbase true
pnpm tsx scripts/subxt-diff.ts diff moonriver true
pnpm tsx scripts/subxt-diff.ts diff moonbeam true
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
base: master
branch: "runtime-diff-${{ github.event.inputs.spec_version }}"
commit-message: "runtime diff: v0.${{ github.event.inputs.spec_version }}.0"
draft: true
title: "Notorize runtime upgrade differences: ${{ github.event.inputs.spec_version }}"
reviewers: "librelois,noandrea"
labels: "B0-silent,D2-notlive"
8 changes: 8 additions & 0 deletions runtime-diffs/moonbase/runtime-2700.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Pallets:
~ EVM
~ ParachainStaking
Storage Entries:
~ Round (Changed: default value)
~ System
Storage Entries:
~ Events (Changed: )
7 changes: 5 additions & 2 deletions test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"dependencies": {
"@acala-network/chopsticks": "0.9.8",
"@moonbeam-network/api-augment": "0.2700.0",
"@moonwall/cli": "4.7.6",
"@moonwall/util": "4.7.6",
"@moonwall/cli": "4.7.7",
"@moonwall/util": "4.7.7",
"@openzeppelin/contracts": "4.9.3",
"@polkadot/api": "10.11.2",
"@polkadot/api-augment": "10.11.2",
Expand All @@ -36,12 +36,14 @@
"@vitest/ui": "1.2.2",
"@zombienet/utils": "0.0.24",
"chalk": "5.3.0",
"dockerode": "^4.0.2",
"eth-object": "github:aurora-is-near/eth-object#master",
"ethers": "6.10.0",
"json-bigint": "1.0.0",
"json-stable-stringify": "1.1.1",
"merkle-patricia-tree": "4.2.4",
"node-fetch": "3.3.2",
"octokit": "^3.1.2",
"randomness": "1.6.7",
"rlp": "3.0.0",
"semver": "7.6.0",
Expand All @@ -53,6 +55,7 @@
},
"devDependencies": {
"@types/debug": "4.1.12",
"@types/dockerode": "^3.3.23",
"@types/json-bigint": "^1.0.4",
"@types/node": "20.11.16",
"@types/semver": "7.5.6",
Expand Down
Loading

0 comments on commit 755d495

Please sign in to comment.