Skip to content

Commit 6dc3dfe

Browse files
authored
Merge pull request #16 from yarnpkg/windows
test: enable most tests on windows CI
2 parents 4d2f312 + c1b2b2e commit 6dc3dfe

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,22 @@ name: Rust
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: ["main"]
66
pull_request:
7-
branches: [ "main" ]
7+
branches: ["main"]
88

99
env:
1010
CARGO_TERM_COLOR: always
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
os:
17+
- ubuntu-latest
18+
- macos-latest
19+
- windows-latest
20+
runs-on: ${{matrix.os}}
1521
steps:
1622
- uses: actions/checkout@v4
1723
- name: Build

src/lib_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ mod tests {
6363
};
6464
}
6565

66+
#[cfg(not(target_os = "windows"))]
6667
#[test]
6768
fn test_load_pnp_manifest() {
6869
load_pnp_manifest("data/pnp-yarn-v3.cjs")
@@ -72,6 +73,7 @@ mod tests {
7273
.expect("Assertion failed: Expected to load the .pnp.cjs file generated by Yarn 4");
7374
}
7475

76+
#[cfg(not(target_os = "windows"))]
7577
#[test]
7678
fn test_resolve_unqualified() {
7779
let expectations_path = std::env::current_dir()
@@ -150,7 +152,6 @@ mod tests {
150152
}
151153
}
152154

153-
154155
#[test]
155156
fn test_parse_single_package_name() {
156157
let parsed = parse_bare_identifier("pkg");

0 commit comments

Comments
 (0)