Skip to content

Commit 3d439e7

Browse files
committed
test: enable most tests on windows CI
only `test_resolve_unqualified` is disabled waiting for #11
1 parent 4d2f312 commit 3d439e7

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ mod tests {
7272
.expect("Assertion failed: Expected to load the .pnp.cjs file generated by Yarn 4");
7373
}
7474

75+
#[cfg(not(target_os = "windows"))]
7576
#[test]
7677
fn test_resolve_unqualified() {
7778
let expectations_path = std::env::current_dir()
@@ -150,7 +151,6 @@ mod tests {
150151
}
151152
}
152153

153-
154154
#[test]
155155
fn test_parse_single_package_name() {
156156
let parsed = parse_bare_identifier("pkg");

0 commit comments

Comments
 (0)