@@ -42,47 +42,34 @@ jobs:
4242 env :
4343 RUSTFLAGS : ' --cfg releasing'
4444
45- test-native-stable :
45+ test-native :
4646 name : Run Native Tests (Stable)
4747 runs-on : ubuntu-latest
48+ strategy :
49+ fail-fast : false
50+ matrix :
51+ toolchain :
52+ - 1.76.0
53+ - stable
54+ - nightly
4855 steps :
4956 - name : Checkout Project
5057 uses : actions/checkout@v4
5158
5259 - name : Setup Rust
5360 uses : dtolnay/rust-toolchain@stable
5461 with :
62+ toolchain : ${{ matrix.toolchain }}
5563 components : rustfmt, clippy
5664
5765 - name : Restore Rust Cache
5866 uses : Swatinem/rust-cache@v2
5967
6068 - name : Run cargo test
61- run : cargo test --all-features --all
62- env :
63- RUSTFLAGS : ' --cfg releasing'
64-
65- test-native-msrv :
66- name : Run Native Tests (MSRV)
67- runs-on : ubuntu-latest
68- steps :
69- - name : Checkout Project
70- uses : actions/checkout@v4
71-
72- - name : Setup Rust
73- uses : dtolnay/rust-toolchain@1.67.0
74- with :
75- components : rustfmt, clippy
76-
77- - name : Restore Rust Cache
78- uses : Swatinem/rust-cache@v2
79-
80- # We only run tests on core packages, examples can be upgraded to be incompatible of msrv.
81- - name : Run cargo test
82- run : |
83- cargo test --all-features --package stylist-core
84- cargo test --all-features --package stylist-macros
85- cargo test --all-features --package stylist
69+ run : /
70+ cargo test -p stylist --features debug_style_locations,parser,yew_integration,yew_use_media_query,yew_use_style,ssr,hydration
71+ cargo test -p stylist-core --all-features
72+ cargo test -p stylist-macros --all-features
8673 env :
8774 RUSTFLAGS : ' --cfg releasing'
8875
@@ -126,8 +113,7 @@ jobs:
126113 needs :
127114 - lint
128115 - rustfmt
129- - test-native-stable
130- - test-native-msrv
116+ - test-native
131117 - test-web
132118 if : github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
133119 steps :
0 commit comments