Skip to content

Commit e762861

Browse files
committed
[update] pipeline to not include demos in code coverage and fix wording in template.
1 parent bffd515 commit e762861

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ body:
4343
description: Provide minimal steps to reproduce the issue.
4444
placeholder: |
4545
1. Clone repository
46-
2. Run `cargo run --example <name>`
46+
2. Run `cargo run -p lambda-demos-render --bin <name>` (or the relevant
47+
`lambda-demos-*` crate)
4748
3. Observe error/unexpected behavior
4849
validations:
4950
required: true

.github/workflows/coverage.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,19 @@ jobs:
6767
- name: Generate full coverage JSON
6868
run: |
6969
cargo llvm-cov --workspace \
70+
--exclude lambda-demos-audio \
71+
--exclude lambda-demos-minimal \
72+
--exclude lambda-demos-render \
7073
--features lambda-rs/with-vulkan,lambda-rs/audio-output-device \
7174
--json \
7275
--output-path coverage.json
7376
7477
- name: Generate HTML coverage report
7578
run: |
7679
cargo llvm-cov --workspace \
80+
--exclude lambda-demos-audio \
81+
--exclude lambda-demos-minimal \
82+
--exclude lambda-demos-render \
7783
--features lambda-rs/with-vulkan,lambda-rs/audio-output-device \
7884
--html \
7985
--output-dir coverage-html \
@@ -86,7 +92,10 @@ jobs:
8692
# Use GitHub's provided base/head SHAs for accurate diff
8793
base_sha="${{ github.event.pull_request.base.sha }}"
8894
head_sha="${{ github.event.pull_request.head.sha }}"
89-
changed_files=$(git diff --name-only "$base_sha" "$head_sha" -- '*.rs' | tr '\n' ' ')
95+
changed_files=$(git diff --name-only "$base_sha" "$head_sha" -- \
96+
'*.rs' \
97+
':(exclude)demos/**' \
98+
| tr '\n' ' ')
9099
echo "files=$changed_files" >> "$GITHUB_OUTPUT"
91100
92101
- name: Generate coverage report data

0 commit comments

Comments
 (0)