Skip to content

Commit 6ffd1e1

Browse files
rosarpbkontur
andauthored
added cmd params steps, repeat (#204)
* added cmd params steps, repeat added check benchmarks to CI workflow * check benchmarks only for bulletin-westend * added checkout step to benchmark workflow * Apply suggestions from code review Co-authored-by: Branislav Kontur <[email protected]> * Update .github/workflows/check.yml Co-authored-by: Branislav Kontur <[email protected]> * removed build step from benchmarks * correcting package name for cargo check --------- Co-authored-by: Branislav Kontur <[email protected]>
1 parent 6750b3f commit 6ffd1e1

File tree

3 files changed

+426
-389
lines changed

3 files changed

+426
-389
lines changed

.github/workflows/check.yml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,4 +151,29 @@ jobs:
151151
unset SKIP_WASM_BUILD
152152
cargo test -p bulletin-westend-integration-tests
153153
154-
# TODO: check benchmarks
154+
benchmarks:
155+
name: Check Benchmarks
156+
runs-on: parity-large
157+
timeout-minutes: 60
158+
needs: [set-image, check-fmt]
159+
container:
160+
image: ${{ needs.set-image.outputs.CI_IMAGE }}
161+
steps:
162+
- name: Checkout sources
163+
uses: actions/checkout@v4
164+
165+
- name: Rust cache
166+
uses: Swatinem/rust-cache@v2
167+
with:
168+
shared-key: "bulletin-cache-benchmarks"
169+
save-if: ${{ github.ref == 'refs/heads/main' }}
170+
171+
- name: Run benchmarks (Westend parachain)
172+
run: |
173+
echo "Running benchmarks for Westend parachain..."
174+
python3 ./scripts/cmd/cmd.py bench --runtime bulletin-westend --steps 2 --repeat 1
175+
echo "Benchmarks for Westend parachain completed."
176+
177+
echo "Running production check for Westend parachain..."
178+
cargo check --profile production -p bulletin-westend-runtime
179+
echo "Production check for Westend parachain completed."

0 commit comments

Comments
 (0)