Skip to content

Commit d5ee89d

Browse files
author
Ridwan Abdilahi
committed
Cleanup running tests with the serde feature enabled.
1 parent 46ec473 commit d5ee89d

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,17 @@ jobs:
3939
with:
4040
command: build
4141
args: --all-targets
42-
- uses: actions-rs/cargo@v1
42+
# Run tests
43+
- name: Run tests
44+
uses: actions-rs/cargo@v1
45+
with:
46+
command: test
47+
# Run tests enabling the serde feature
48+
- name: Run url tests with the serde feature
49+
uses: actions-rs/cargo@v1
4350
with:
4451
command: test
45-
# Manually select the features to enable for testing (in addition to default features)
46-
# so unstable features are not included.
47-
args: --features "url/serde"
52+
args: --manifest-path url/Cargo.toml --features "serde"
4853
# The #[debugger_visualizer] attribute is currently gated behind an unstable feature flag.
4954
# In order to test the visualizers for the url crate, they have to be tested on a nightly build.
5055
- name: Run debugger_visualizer tests
@@ -54,7 +59,7 @@ jobs:
5459
uses: actions-rs/cargo@v1
5560
with:
5661
command: test
57-
args: --test debugger_visualizer --features "url/serde,url/debugger_visualizer" -- --test-threads=1
62+
args: --test debugger_visualizer --manifest-path url/Cargo.toml --features "serde,debugger_visualizer" -- --test-threads=1
5863

5964
WASM:
6065
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)