Skip to content
Merged
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
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/lib_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand All @@ -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()
Expand Down Expand Up @@ -150,7 +152,6 @@ mod tests {
}
}


#[test]
fn test_parse_single_package_name() {
let parsed = parse_bare_identifier("pkg");
Expand Down