Skip to content
Merged

182 #185

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
50 changes: 50 additions & 0 deletions .github/workflows/reusable-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,28 @@ jobs:
toolchain: ${{ matrix.rust }}
all-features: ${{ inputs.all-features }}

- name: Generate test report (JSON format)
if: always()
continue-on-error: true
run: |
cargo +${{ matrix.rust }} test --all-features --workspace --no-fail-fast -- \
--format json -Z unstable-options --report-time > test-results-${{ matrix.rust }}.json || true

- name: Upload test results
if: always()
uses: actions/upload-artifact@v4
with:
name: test-results-${{ matrix.rust }}
path: test-results-${{ matrix.rust }}.json
retention-days: 30

- name: Add test summary
if: always() && matrix.rust == needs.msrv.outputs.version
run: |
echo "## Test Results (${{ matrix.rust }})" >> $GITHUB_STEP_SUMMARY
echo "Test artifacts uploaded with 30-day retention" >> $GITHUB_STEP_SUMMARY
echo "- Test report: \`test-results-${{ matrix.rust }}.json\`" >> $GITHUB_STEP_SUMMARY

- name: Auto-commit README changes (any branch)
if: always() && matrix.rust == needs.msrv.outputs.version
run: |
Expand Down Expand Up @@ -356,6 +378,27 @@ jobs:
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}

- name: Generate HTML coverage report
run: cargo llvm-cov --all-features --workspace --html

- name: Upload coverage artifacts
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: |
lcov.info
target/llvm-cov/html/
retention-days: 30

- name: Add coverage summary
run: |
echo "## Coverage Report" >> $GITHUB_STEP_SUMMARY
echo "Coverage artifacts uploaded with 30-day retention:" >> $GITHUB_STEP_SUMMARY
echo "- LCOV report: \`lcov.info\`" >> $GITHUB_STEP_SUMMARY
echo "- HTML report: \`target/llvm-cov/html/\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "📊 [View on Codecov](https://codecov.io/gh/RAprogramm/masterror)" >> $GITHUB_STEP_SUMMARY

benchmarks:
runs-on: ubuntu-latest
needs: test
Expand Down Expand Up @@ -401,3 +444,10 @@ jobs:
else
echo "No previous benchmark found, skipping comparison"
fi

- name: Add benchmark summary
run: |
echo "## Benchmark Results" >> $GITHUB_STEP_SUMMARY
echo "Benchmark artifacts uploaded with 30-day retention:" >> $GITHUB_STEP_SUMMARY
echo "- Criterion reports: \`target/criterion/\`" >> $GITHUB_STEP_SUMMARY
echo "- Baseline: \`ci-baseline\`" >> $GITHUB_STEP_SUMMARY
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -488,4 +488,3 @@ assert_eq!(problem.grpc.expect("grpc").name, "UNAUTHENTICATED");

MSRV: **1.90** · License: **MIT OR Apache-2.0** · No `unsafe`


Loading