Skip to content

Commit a9521b8

Browse files
committed
Added build & test steps in GHWF.
1 parent 7b5cfcb commit a9521b8

File tree

3 files changed

+8
-5
lines changed

3 files changed

+8
-5
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: Cargo build 'adblock' package
3131
run: cargo build --all-features --all-targets
3232

33+
- name: Cargo build 'adblock' package (default features)
34+
run: cargo build --all-targets
35+
3336
- name: Cargo build 'adblock' package (no default features)
3437
run: cargo build --no-default-features --all-targets
3538

@@ -61,6 +64,9 @@ jobs:
6164
- name: Cargo test 'adblock' package
6265
run: cargo test --all-features --tests --no-fail-fast
6366

67+
- name: Cargo test 'adblock' package (default features)
68+
run: cargo test --tests --no-fail-fast
69+
6470
- name: Cargo test 'adblock' package (no default features)
6571
run: cargo test --no-default-features --features embedded-domain-resolver,full-regex-handling --tests --no-fail-fast
6672

src/network_filter_list.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ impl fmt::Display for CheckResult {
2121
if let Some(ref raw_line) = self.raw_line {
2222
write!(f, "{}", raw_line)
2323
} else {
24-
write!(f, "{}", self.filter_mask)
24+
write!(f, "NetworkFilter")
2525
}
2626
}
2727
}

tests/unit/blocker.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -1463,10 +1463,7 @@ mod placeholder_string_tests {
14631463
&crate::request::Request::new("https://example.com", "https://example.com", "document")
14641464
.unwrap(),
14651465
);
1466-
assert_eq!(
1467-
block.filter,
1468-
Some("100000001100110001111111111111".to_string())
1469-
);
1466+
assert_eq!(block.filter, Some("NetworkFilter".to_string()));
14701467
}
14711468
}
14721469

0 commit comments

Comments
 (0)