Skip to content

Commit

Permalink
ci: Add benchmarks
Browse files Browse the repository at this point in the history
It is required to run a simple pass on benchmarks to catch bugs.

Fixes #28
  • Loading branch information
aidan46 committed May 21, 2024
1 parent 61d2d4a commit c78396c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@ jobs:
run: RUSTFLAGS="-D warnings" cargo build --locked -q --features try-runtime
- name: Build node runtime
run: RUSTFLAGS="-D warnings" cargo build --locked -q -p polka-storage-runtime
- name: Build node with runtime-benchmark feature
run: RUSTFLAGS="-D warnings" cargo build --locked -q -p polka-storage-node --features runtime-benchmarks
- name: Build node with runtime-benchmark and run benchmarks
run: |
RUSTFLAGS="-D warnings" cargo build --locked -q -p polka-storage-node --features runtime-benchmarks
./target/debug/polka-storage-node benchmark pallet --pallet "" --extrinsic "" --steps 2 --repeat 1
- name: Build in release mode
run: RUSTFLAGS="-D warnings" cargo build --locked -q --release
- name: Run tests
Expand Down

0 comments on commit c78396c

Please sign in to comment.