From c030b2ff8818f74eb74c72250f4aac8dd94db1ec Mon Sep 17 00:00:00 2001 From: aiongg Date: Mon, 19 Oct 2026 21:40:29 +0000 Subject: [PATCH] ci: test the keymap workflow with the ui feature (the dialog) instead of all features --- .github/workflows/keymap.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/keymap.yml b/.github/workflows/keymap.yml index 97b1124e..133cbe35 100644 --- a/.github/workflows/keymap.yml +++ b/.github/workflows/keymap.yml @@ -30,12 +30,13 @@ jobs: key: craft-keymap-linux - run: cargo fmt -p craft-keymap --check - run: cargo clippy -p craft-keymap --all-targets --no-default-features --locked -- -D warnings - - run: cargo clippy -p craft-keymap --all-targets --all-features --locked -- -D warnings - # Doctests run once, in the all-features step. + - run: cargo clippy -p craft-keymap --all-targets --features ui --locked -- -D warnings + # Doctests run once, in the `ui` step. `snapshot` (dialog screenshots) needs a GPU and is + # left out; `ui` covers `egui`. - name: Test core run: cargo test -p craft-keymap --no-default-features --lib --tests --locked - - name: Test egui dispatch - run: cargo test -p craft-keymap --all-features --locked + - name: Test egui dispatch and the shortcuts dialog + run: cargo test -p craft-keymap --features ui --locked native: timeout-minutes: 15 name: Keymap (${{ matrix.os }}) @@ -50,7 +51,7 @@ jobs: - uses: Swatinem/rust-cache@v2 with: key: craft-keymap-${{ matrix.os }} - - run: cargo test -p craft-keymap --all-features --locked + - run: cargo test -p craft-keymap --features ui --locked wasm: timeout-minutes: 10 name: Keymap WASM @@ -63,4 +64,4 @@ jobs: - uses: Swatinem/rust-cache@v2 with: key: craft-keymap-wasm - - run: cargo check -p craft-keymap --all-features --locked --target wasm32-unknown-unknown + - run: cargo check -p craft-keymap --features ui --locked --target wasm32-unknown-unknown