Skip to content

Commit 4ea96e1

Browse files
committed
fix(ci): capture cargo-llvm-cov report output by redirecting stderr
1 parent 2fdb594 commit 4ea96e1

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/coprocessor-cargo-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,13 @@ jobs:
111111
run: |
112112
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/coprocessor \
113113
TEST_GLOBAL_LOCALSTACK=1 \
114-
cargo llvm-cov --workspace --profile coverage -- --test-threads=1
114+
cargo llvm-cov --no-report --workspace --profile coverage -- --test-threads=1
115115
working-directory: coprocessor/fhevm-engine
116116

117-
- name: Coverage summary
117+
- name: Generate coverage report
118118
if: always()
119119
run: |
120-
REPORT=$(DATABASE_URL=postgresql://postgres:postgres@localhost:5432/coprocessor \
121-
cargo llvm-cov report --workspace --profile coverage 2>/dev/null) || true
120+
REPORT=$(cargo llvm-cov report --profile coverage 2>&1) || true
122121
{
123122
echo '## Coverage: coprocessor/fhevm-engine'
124123
if [ -n "$REPORT" ]; then
@@ -129,4 +128,5 @@ jobs:
129128
echo '*No coverage data available (tests may have failed before producing profiling data).*'
130129
fi
131130
} >> "$GITHUB_STEP_SUMMARY"
131+
echo "$REPORT"
132132
working-directory: coprocessor/fhevm-engine

0 commit comments

Comments
 (0)