From 1ed94a1c12a8a4e35745c28a29202b52f5c76397 Mon Sep 17 00:00:00 2001 From: a-givertzman Date: Tue, 26 Sep 2023 19:36:34 +0300 Subject: [PATCH] github actions --- .github/workflows/test.yaml | 3 +++ src/tests/unit/switch_state_test.rs | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index bfadf820c..ac1230556 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -31,6 +31,9 @@ jobs: toolchain: stable override: true + - name: Static analisis + run: | + cargo check # - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }} # - run: cargo build --release - name: Unit tests diff --git a/src/tests/unit/switch_state_test.rs b/src/tests/unit/switch_state_test.rs index 164567c9f..f437f9a07 100644 --- a/src/tests/unit/switch_state_test.rs +++ b/src/tests/unit/switch_state_test.rs @@ -209,7 +209,6 @@ fn test_stot_step_back() { (1, ProcessState::Off), (1, ProcessState::Off), ]; - // let sequence = vec![0,0,1,1,2,2,5,0,6,0,6,7,7,7,6,6,6,5,2,7,2,1,1]; for (value, targetState) in testData { switchState.add(value); let state = switchState.state();