-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Try to fix CI. The MSRV should be bumped to 1.76, which is the same a…
…s `yew`'s MSRV.
- Loading branch information
Showing
2 changed files
with
16 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,47 +42,34 @@ jobs: | |
env: | ||
RUSTFLAGS: '--cfg releasing' | ||
|
||
test-native-stable: | ||
name: Run Native Tests (Stable) | ||
test-native: | ||
name: Run Native Tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: | ||
- 1.76.0 | ||
- stable | ||
- nightly | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: ${{ matrix.toolchain }} | ||
components: rustfmt, clippy | ||
|
||
- name: Restore Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Run cargo test | ||
run: cargo test --all-features --all | ||
env: | ||
RUSTFLAGS: '--cfg releasing' | ||
|
||
test-native-msrv: | ||
name: Run Native Tests (MSRV) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Rust | ||
uses: dtolnay/[email protected] | ||
with: | ||
components: rustfmt, clippy | ||
|
||
- name: Restore Rust Cache | ||
uses: Swatinem/rust-cache@v2 | ||
|
||
# We only run tests on core packages, examples can be upgraded to be incompatible of msrv. | ||
- name: Run cargo test | ||
run: | | ||
cargo test --all-features --package stylist-core | ||
cargo test --all-features --package stylist-macros | ||
cargo test --all-features --package stylist | ||
cargo test -p stylist --features debug_style_locations,parser,yew_integration,yew_use_media_query,yew_use_style,ssr,hydration | ||
cargo test -p stylist-core --all-features | ||
cargo test -p stylist-macros --all-features | ||
env: | ||
RUSTFLAGS: '--cfg releasing' | ||
|
||
|
@@ -126,8 +113,7 @@ jobs: | |
needs: | ||
- lint | ||
- rustfmt | ||
- test-native-stable | ||
- test-native-msrv | ||
- test-native | ||
- test-web | ||
if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters