Skip to content

Commit

Permalink
feat(cli): add validate subcommand (AcalaNetwork#165)
Browse files Browse the repository at this point in the history
* feat(cli): add validate subcommand

* fix(config): fix test.yml

* feat(config): support middleware and extensions mapping validation

* revert(config): remove unergonomic middleware and extension mappings validation

* refactor(config): move test configs
  • Loading branch information
indirection42 authored May 7, 2024
1 parent 9130247 commit a1628f5
Show file tree
Hide file tree
Showing 11 changed files with 500 additions and 66 deletions.
38 changes: 19 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ name: Test

on:
push:
branches: [ "master" ]
branches: ["master"]
paths-ignore:
- '**/README.md'
- "**/README.md"
pull_request:
branches: [ "master" ]
branches: ["master"]

env:
CARGO_TERM_COLOR: always
Expand All @@ -19,19 +19,19 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-09-29
components: rustfmt, clippy
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Check format
run: cargo +nightly-2023-09-29 fmt --all -- --check
- name: Check clippy
run: cargo +nightly-2023-09-29 clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2023-09-29
components: rustfmt, clippy
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Check format
run: cargo +nightly-2023-09-29 fmt --all -- --check
- name: Check clippy
run: cargo +nightly-2023-09-29 clippy --all-targets --all-features -- -D warnings
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
188 changes: 186 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ tower-http = { version = "0.4", features = ["full"] }
tracing = "0.1.40"
tracing-serde = "0.1.3"
tracing-subscriber = { version = "0.3.18", features = ["env-filter", "json"] }
garde = { version = "0.18", features = ["full"] }

jsonrpsee = { path = "./vendor/jsonrpsee/jsonrpsee", features = ["full"] }
governor = { path = "./vendor/governor/governor" }
Expand Down
Loading

0 comments on commit a1628f5

Please sign in to comment.