forked from r0gue-io/base-parachain
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: sync with base parachain (#2)
* ci: add workflow (#12) * chore: pin rust channel to version used for polkadot * style: formatting using rust version * refactor: address clippy warnings * ci: add workflow * ci: add missing packages * ci: various fixes * ci: use cache * fix: adds delivery fees config and base weights (#11) * fix(base): delivery fees * fix(base): declare WeightInfo for every pallet * style(base): fmt * style(base): undo fmt * fix(base): remove example zombienet file * fix(base): Add treasury clarification * fix(base): weights & benchmarks * fix: remove erroneous pallets * docs: add benchmark comment for consistency * fix(runtime): use unit type for weightinfo for consistency * docs(runtime): add additional context * fix(xcm): filter teleports to disable --------- Co-authored-by: Frank Bell <[email protected]> * chore: remove deprecated polkadot-launch (#14) * ci: add workflow for linting pr titles (r0gue-io#15) * fix: update default para id * chore: sync with base parachain --------- Co-authored-by: Frank Bell <[email protected]> Co-authored-by: Alejandro Martinez Andres <[email protected]> Co-authored-by: Frank Bell <[email protected]> Co-authored-by: Daan van der Plas <[email protected]>
- Loading branch information
1 parent
c1e569a
commit d939d94
Showing
19 changed files
with
1,276 additions
and
1,113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
name: Lint, check, clippy and test | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
types: [ opened, synchronize, reopened, ready_for_review ] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Check formatting | ||
run: cargo fmt --all -- --check | ||
|
||
check: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Ubuntu dependencies | ||
shell: bash | ||
run: sudo apt update && sudo apt install -y protobuf-compiler | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
cache-on-failure: true | ||
cache-all-crates: true | ||
key: check | ||
|
||
- name: Check Build | ||
run: | | ||
cargo check --release --locked --all-features --workspace | ||
clippy: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
permissions: | ||
checks: write | ||
env: | ||
SKIP_WASM_BUILD: 1 | ||
steps: | ||
- name: Setup Ubuntu dependencies | ||
shell: bash | ||
run: sudo apt update && sudo apt install -y protobuf-compiler | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
cache-on-failure: true | ||
cache-all-crates: true | ||
key: check | ||
|
||
- name: Annotate with Clippy warnings | ||
uses: actions-rs/clippy-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
args: --release --locked --all-features --workspace | ||
|
||
test: | ||
needs: lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup Ubuntu dependencies | ||
shell: bash | ||
run: sudo apt update && sudo apt install -y protobuf-compiler | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
- name: Rust Cache | ||
uses: Swatinem/[email protected] | ||
with: | ||
cache-on-failure: true | ||
cache-all-crates: true | ||
key: test | ||
|
||
- name: Run tests | ||
run: cargo test --release --locked --all-features --workspace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: "Lint PR" | ||
|
||
on: | ||
pull_request_target: | ||
types: | ||
- opened | ||
- edited | ||
- synchronize | ||
|
||
permissions: | ||
pull-requests: read | ||
|
||
jobs: | ||
lint: | ||
name: Validate PR title for conventional commit compliance | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: amannn/action-semantic-pull-request@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[relaychain] | ||
chain = "rococo-local" | ||
|
||
[[relaychain.nodes]] | ||
name = "alice" | ||
validator = true | ||
|
||
[[relaychain.nodes]] | ||
name = "bob" | ||
validator = true | ||
|
||
[[parachains]] | ||
id = 1000 | ||
default_command = "./target/release/parachain-template-node" | ||
|
||
[[parachains.collators]] | ||
name = "collator-01" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
use substrate_build_script_utils::{generate_cargo_keys, rerun_if_git_head_changed}; | ||
|
||
fn main() { | ||
generate_cargo_keys(); | ||
generate_cargo_keys(); | ||
|
||
rerun_if_git_head_changed(); | ||
rerun_if_git_head_changed(); | ||
} |
Oops, something went wrong.