From 4fa6893222eece63ce9d52d2dfdfc1c734668ca3 Mon Sep 17 00:00:00 2001 From: Brady Fomegne Date: Sat, 10 Feb 2024 23:11:42 +0100 Subject: [PATCH] ci: update (#165) - Skip sandbox test for windows - Build for all the crates per group of feature - Test for all the crates per group of feature --- .github/workflows/rust.yml | 45 +++++++++++++++++++++++++++++++------- 1 file changed, 37 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index d058d62..889dd07 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -24,6 +24,8 @@ jobs: headless: Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 & - os: macos-latest extra: -- --skip test_simple + - os: windows-latest + extra: -- --skip test_simple steps: - uses: actions/checkout@v3 @@ -42,21 +44,48 @@ jobs: run: ${{matrix.headless}} - name: Rustfmt - run: | - cargo fmt -- --check + run: cargo fmt -- --check - name: Clippy run: cargo clippy --all-targets --all-features -- -D warnings - - - name: Build - run: cargo build --all-features --verbose + + - name: Build (minimal) + run: | + cargo test --no-run -p afrim-memory --verbose + cargo test --no-run -p afrim-preprocessor --no-default-features --verbose + cargo test --no-run -p afrim-translator --no-default-features --verbose + cargo test --no-run -p afrim-config --no-default-features --verbose + cargo test --no-run -p afrim --no-default-features --verbose + + - name: Build (normal) + run: | + cargo test --no-run -p afrim-preprocessor --verbose + cargo test --no-run -p afrim-translator --verbose + cargo test --no-run -p afrim-config --verbose + cargo test --no-run -p afrim --verbose + + - name: Build (full) + run: | + cargo test --no-run -p afrim-preprocessor --all-features --verbose + cargo test --no-run -p afrim --all-features --verbose - name: Run tests (minimal) - run: cargo test --no-default-features --lib --bins --tests --verbose ${{matrix.extra}} + run: | + cargo test -p afrim-memory --verbose + cargo test -p afrim-preprocessor --no-default-features --verbose + cargo test -p afrim-translator --no-default-features --verbose + cargo test -p afrim-config --no-default-features --verbose + cargo test -p afrim --no-default-features --verbose ${{matrix.extra}} - name: Run tests (normal) - run: cargo test --lib --bins --tests --verbose ${{matrix.extra}} + run: | + cargo test -p afrim-preprocessor --verbose + cargo test -p afrim-translator --verbose + cargo test -p afrim-config --verbose + cargo test -p afrim --verbose ${{matrix.extra}} - name: Run tests (full) - run: cargo test --all-features --lib --bins --tests --verbose ${{matrix.extra}} + run: | + cargo test -p afrim-preprocessor --all-features --verbose + cargo test -p afrim --all-features --verbose ${{matrix.extra}}