From 096f5c71ceb87ef90e58b39381f129254aae187c Mon Sep 17 00:00:00 2001 From: Meng Zhang Date: Wed, 7 Feb 2024 23:57:01 -0800 Subject: [PATCH] test: turn on rust coverage on main branch (#1412) --- .github/workflows/test-rust.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/test-rust.yml b/.github/workflows/test-rust.yml index b9465a8cf68b..b8ed9f8c717b 100644 --- a/.github/workflows/test-rust.yml +++ b/.github/workflows/test-rust.yml @@ -1,6 +1,9 @@ name: Test Rust on: + push: + branches: [ "main "] + pull_request: branches: [ "main" ] paths: @@ -22,6 +25,7 @@ env: jobs: tests: + if: ${{ github.event_name == 'pull_request' }} runs-on: ubuntu-latest env: CARGO_TERM_COLOR: always