Skip to content

Commit c9f2694

Browse files
committed
Try to fix CI. The MSRV should be bumped to 1.76, which is the same as yew's MSRV.
1 parent 0cba154 commit c9f2694

File tree

2 files changed

+16
-29
lines changed

2 files changed

+16
-29
lines changed

.github/workflows/everything.yml

Lines changed: 14 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -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:

packages/stylist/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,9 @@ debug_parser = ["stylist-core/parser"]
5757
debug_style_locations = []
5858
macros = ["stylist-macros"]
5959
random = ["dep:fastrand", "dep:instant"]
60-
parser = ["stylist-core/parser"]
60+
6161
browser_env = ["dep:web-sys"]
62+
parser = ["stylist-core/parser"]
6263
yew_integration = ["dep:yew", "yew_use_media_query", "yew_use_style"]
6364
yew_use_media_query = ["dep:yew", "dep:gloo-events", "web-sys/MediaQueryList"]
6465
yew_use_style = ["dep:yew"]

0 commit comments

Comments
 (0)