Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,26 @@ jobs:
command: test
args: --examples --workspace

decode-tester:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of running with every commit, let's aim to have the CI run only when the specific types files are changed (since I expect these tests will be fairly slow, and types hopefully won't change very often).

ie when polkadot_types.yaml changes, we just want to test that file and nothing else. Same for each other file.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To do this we could have a feature flag per file so that we only run the tests for a specific file when it changes, and then call something like cargo test -p frame-decode-tester --featrues kusama-assethub

name: Check Block Decoding
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Install Rust stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true

- name: Rust Cache
uses: Swatinem/[email protected]

- name: Run decode tester tests
run: cargo test -p frame-decode-tester --test '*' -- --nocapture

clippy:
name: Cargo clippy
runs-on: ubuntu-latest
Expand Down
Loading
Loading