Skip to content

Commit

Permalink
chore: merge upstream (#11)
Browse files Browse the repository at this point in the history
* 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 <frank@r0gue.io>

* chore: remove deprecated polkadot-launch (#14)

* ci: add workflow for linting pr titles (r0gue-io#15)

* fix: update default para id

* docs: update readme (r0gue-io#19)

* docs: update readme

* docs: improve readme

* feat: frontier integration (#1)

* feat: add frontier

* feat(base): add evm dependencies

* refactor: rename parachain

* chore: fix dependencies and import frontier

* fix: fixes to spin up the network with zombienet

* fix: benchmarking and remove pallet-hotfix (#3)

* chore: rebase from upstream

* chore: workspace dependencies

* refactor: resolve clippy

---------

Co-authored-by: Frank Bell <60948618+evilrobot-01@users.noreply.github.com>
Co-authored-by: Alejandro Martinez Andres <11448715+al3mart@users.noreply.github.com>
Co-authored-by: Frank Bell <frank@r0gue.io>
Co-authored-by: Alex Bean <alexfraga10@gmail.com>
Co-authored-by: Peter White <23270067+peterwht@users.noreply.github.com>
  • Loading branch information
6 people authored May 10, 2024
1 parent 6012ef1 commit 1b31942
Show file tree
Hide file tree
Showing 19 changed files with 532 additions and 344 deletions.
84 changes: 84 additions & 0 deletions .github/workflows/ci.yaml
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/rust-cache@v2.7.3
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/rust-cache@v2.7.3
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/rust-cache@v2.7.3
with:
cache-on-failure: true
cache-all-crates: true
key: test

- name: Run tests
run: cargo test --release --locked --all-features --workspace
20 changes: 20 additions & 0 deletions .github/workflows/lint-pr.yml
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 }}
Loading

0 comments on commit 1b31942

Please sign in to comment.