From 830214d79815e19fdc8d92abe16f054b91699afc Mon Sep 17 00:00:00 2001 From: Benoit Ranque Date: Mon, 7 Oct 2024 14:38:33 -0400 Subject: [PATCH] trigger workflows on pull request also --- .github/workflows/benchmarks.yaml | 3 +++ .github/workflows/cargo-audit.yaml | 7 ++++++- .github/workflows/cargo-build.yaml | 4 ++++ .github/workflows/cargo-machete.yaml | 4 ++++ .github/workflows/cargo-test.yaml | 3 +++ .github/workflows/check-format.yaml | 3 +++ .github/workflows/e2e-tests.yaml | 3 +++ .github/workflows/nix-check.yaml | 3 +++ .github/workflows/schema-definitions.yaml | 3 +++ .github/workflows/ship.yaml | 3 +++ 10 files changed, 35 insertions(+), 1 deletion(-) diff --git a/.github/workflows/benchmarks.yaml b/.github/workflows/benchmarks.yaml index 39c11976f..08e0501b8 100644 --- a/.github/workflows/benchmarks.yaml +++ b/.github/workflows/benchmarks.yaml @@ -2,6 +2,9 @@ name: Postgres NDC component benchmarks on: push: + pull_request: + branches: + - main permissions: contents: write diff --git a/.github/workflows/cargo-audit.yaml b/.github/workflows/cargo-audit.yaml index a5bae9d09..daf8e745c 100644 --- a/.github/workflows/cargo-audit.yaml +++ b/.github/workflows/cargo-audit.yaml @@ -1,4 +1,9 @@ -on: [push] +on: + push: + pull_request: + branches: + - main + name: cargo audit diff --git a/.github/workflows/cargo-build.yaml b/.github/workflows/cargo-build.yaml index 4b7dc273d..3b286d0e7 100644 --- a/.github/workflows/cargo-build.yaml +++ b/.github/workflows/cargo-build.yaml @@ -2,6 +2,10 @@ name: Postgres NDC build on: push: + pull_request: + branches: + - main + jobs: build: diff --git a/.github/workflows/cargo-machete.yaml b/.github/workflows/cargo-machete.yaml index c05dfa5e3..d7bae1223 100644 --- a/.github/workflows/cargo-machete.yaml +++ b/.github/workflows/cargo-machete.yaml @@ -2,6 +2,10 @@ name: find unused dependencies on: push: + pull_request: + branches: + - main + jobs: cargo-machete: diff --git a/.github/workflows/cargo-test.yaml b/.github/workflows/cargo-test.yaml index 8287d79d1..748afdf71 100644 --- a/.github/workflows/cargo-test.yaml +++ b/.github/workflows/cargo-test.yaml @@ -2,6 +2,9 @@ name: Postgres NDC tests on: push: + pull_request: + branches: + - main jobs: test-unit: diff --git a/.github/workflows/check-format.yaml b/.github/workflows/check-format.yaml index 29c78e7fd..082d6433c 100644 --- a/.github/workflows/check-format.yaml +++ b/.github/workflows/check-format.yaml @@ -2,6 +2,9 @@ name: Postgres NDC format on: push: + pull_request: + branches: + - main jobs: cargo-fmt: diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index 912dbc6dd..d41530147 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -2,6 +2,9 @@ name: Postgres E2E tests on: push: + pull_request: + branches: + - main jobs: run_postgres_e2es: diff --git a/.github/workflows/nix-check.yaml b/.github/workflows/nix-check.yaml index 90e0234be..0c04504f5 100644 --- a/.github/workflows/nix-check.yaml +++ b/.github/workflows/nix-check.yaml @@ -2,6 +2,9 @@ name: Postgres NDC nix check on: push: + pull_request: + branches: + - main jobs: nix-flake-check: diff --git a/.github/workflows/schema-definitions.yaml b/.github/workflows/schema-definitions.yaml index e1c2aac5b..9007c74b6 100644 --- a/.github/workflows/schema-definitions.yaml +++ b/.github/workflows/schema-definitions.yaml @@ -2,6 +2,9 @@ name: Schema Definitions for Metadata on: push: + pull_request: + branches: + - main jobs: schema_definitions: diff --git a/.github/workflows/ship.yaml b/.github/workflows/ship.yaml index a047f8bc0..8e786726f 100644 --- a/.github/workflows/ship.yaml +++ b/.github/workflows/ship.yaml @@ -2,6 +2,9 @@ name: ship on: push: + pull_request: + branches: + - main jobs: nix-build: