From b01f7c02b7a69780d5ae34f0cf303b6d392db222 Mon Sep 17 00:00:00 2001 From: Alexey Lebedenko Date: Thu, 19 Sep 2024 13:26:49 +0200 Subject: [PATCH] Run rust workflows on commits to main --- .github/workflows/rust_clippy_check.yml | 7 +++++-- .github/workflows/rust_format_check.yml | 7 +++++-- .github/workflows/rust_test_report.yml | 7 +++++-- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/rust_clippy_check.yml b/.github/workflows/rust_clippy_check.yml index 6576dfd..43a28ed 100644 --- a/.github/workflows/rust_clippy_check.yml +++ b/.github/workflows/rust_clippy_check.yml @@ -1,7 +1,10 @@ name: Rust Clippy Check 'on': - - pull_request - - workflow_dispatch + pull_request: + workflow_dispatch: + push: + branches: + - main jobs: clippy: runs-on: ubuntu-latest diff --git a/.github/workflows/rust_format_check.yml b/.github/workflows/rust_format_check.yml index da3783e..14b9c42 100644 --- a/.github/workflows/rust_format_check.yml +++ b/.github/workflows/rust_format_check.yml @@ -1,7 +1,10 @@ name: Rust Format Check 'on': - - pull_request - - workflow_dispatch + pull_request: + workflow_dispatch: + push: + branches: + - main jobs: rustfmt: runs-on: ubuntu-latest diff --git a/.github/workflows/rust_test_report.yml b/.github/workflows/rust_test_report.yml index 10ebaff..83e4ced 100644 --- a/.github/workflows/rust_test_report.yml +++ b/.github/workflows/rust_test_report.yml @@ -1,7 +1,10 @@ name: Rust Test & Report 'on': - - pull_request - - workflow_dispatch + pull_request: + workflow_dispatch: + push: + branches: + - main jobs: test: runs-on: ubuntu-latest