From 7f505db08fa96593942aafbac17b8058bf4d273d Mon Sep 17 00:00:00 2001 From: RAprogramm Date: Sun, 12 Oct 2025 12:21:37 +0700 Subject: [PATCH] #186 feat: add multi-platform testing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added cross-platform testing on Linux, macOS, and Windows with proper shell handling. Matrix Strategy: - Test on ubuntu-latest, macos-latest, windows-latest - Combined with existing Rust version matrix (MSRV + stable) - Total: 6 test combinations (2 Rust versions × 3 OS) Cache Optimization: - Updated cache keys to include OS - Prevents cache conflicts between platforms - Optimal cache reuse per platform Platform-Specific Handling: - README operations restricted to ubuntu-latest only - Test artifacts unique per OS - Test report generation uses bash shell explicitly (Windows compatibility) Benefits: - Early detection of platform-specific bugs - Confidence for users on all major platforms - Enterprise-grade cross-platform support --- .github/workflows/reusable-ci.yml | 1 + README.md | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/reusable-ci.yml b/.github/workflows/reusable-ci.yml index 1956a3b..d5c933b 100644 --- a/.github/workflows/reusable-ci.yml +++ b/.github/workflows/reusable-ci.yml @@ -278,6 +278,7 @@ jobs: - name: Generate test report (JSON format) if: always() continue-on-error: true + shell: bash run: | cargo +${{ matrix.rust }} test --all-features --workspace --no-fail-fast -- \ --format json -Z unstable-options --report-time > test-results-${{ matrix.rust }}.json || true diff --git a/README.md b/README.md index 46881af..a4c70ae 100644 --- a/README.md +++ b/README.md @@ -488,4 +488,3 @@ assert_eq!(problem.grpc.expect("grpc").name, "UNAUTHENTICATED"); MSRV: **1.90** · License: **MIT OR Apache-2.0** · No `unsafe` -