From 4a593dcec53f319df574c51f43c45a0a485666e2 Mon Sep 17 00:00:00 2001 From: Lianmin Zheng Date: Sat, 9 Nov 2024 13:52:03 -0800 Subject: [PATCH] Update pr-test-rust.yml to add a "finish" step This can probably meet the required "finish" job from branch protection rule. --- .github/workflows/pr-test-rust.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pr-test-rust.yml b/.github/workflows/pr-test-rust.yml index ae42446738..82baf733d4 100644 --- a/.github/workflows/pr-test-rust.yml +++ b/.github/workflows/pr-test-rust.yml @@ -26,14 +26,23 @@ jobs: - name: Install dependencies run: | bash scripts/ci_install_rust.sh + - name: Run fmt run: | source "$HOME/.cargo/env" cd rust/ cargo fmt -- --check + - name: Run test timeout-minutes: 20 run: | source "$HOME/.cargo/env" cd rust/ cargo test + + finish: + needs: [unit-test-rust] + runs-on: ubuntu-latest + steps: + - name: Finish + run: echo "This is an empty step to ensure that all jobs are completed."