From bd0cd675e8bffa74088189ff5a44dd274f561adb Mon Sep 17 00:00:00 2001 From: Kaede Hoshikawa Date: Sun, 17 Sep 2023 21:57:05 +0900 Subject: [PATCH] Fix CI. --- .github/workflows/everything.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/everything.yml b/.github/workflows/everything.yml index 144d1dc..ff807a0 100644 --- a/.github/workflows/everything.yml +++ b/.github/workflows/everything.yml @@ -42,8 +42,8 @@ jobs: env: RUSTFLAGS: "--cfg releasing" - test-native: - name: Run Native Tests + test-native-stable: + name: Run Native Tests (Stable) runs-on: ubuntu-latest steps: - name: Checkout Project @@ -62,6 +62,30 @@ jobs: env: RUSTFLAGS: "--cfg releasing" + test-native-msrv: + name: Run Native Tests (MSRV) + runs-on: ubuntu-latest + steps: + - name: Checkout Project + uses: actions/checkout@v3 + + - name: Setup Rust + uses: dtolnay/rust-toolchain@1.64.0 + 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 + env: + RUSTFLAGS: "--cfg releasing" + test-web: name: Run Browser Tests runs-on: ubuntu-latest