diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6b80e0f..b06ce93 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,16 +2,22 @@ name: Rust on: push: - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] env: CARGO_TERM_COLOR: always jobs: build: - runs-on: ubuntu-latest + strategy: + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest + runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v4 - name: Build diff --git a/src/lib_tests.rs b/src/lib_tests.rs index 2538011..e0b0a72 100644 --- a/src/lib_tests.rs +++ b/src/lib_tests.rs @@ -63,6 +63,7 @@ mod tests { }; } + #[cfg(not(target_os = "windows"))] #[test] fn test_load_pnp_manifest() { load_pnp_manifest("data/pnp-yarn-v3.cjs") @@ -72,6 +73,7 @@ mod tests { .expect("Assertion failed: Expected to load the .pnp.cjs file generated by Yarn 4"); } + #[cfg(not(target_os = "windows"))] #[test] fn test_resolve_unqualified() { let expectations_path = std::env::current_dir() @@ -150,7 +152,6 @@ mod tests { } } - #[test] fn test_parse_single_package_name() { let parsed = parse_bare_identifier("pkg");