From 9467bc32d6399d34145fe9b3989473a65a0a44f4 Mon Sep 17 00:00:00 2001 From: Charles Tytler Date: Wed, 13 Dec 2023 20:06:03 -0800 Subject: [PATCH 1/4] Update event triggers on CI actions This includes `on: pull_request` and `on: workflow_dispatch` to CI test triggers. The first will run actions when a branch is converted to a PR (and doesn't trigger the existing `push`). The latter allows Manual triggering of actions on branches. --- .github/workflows/cpp-tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cpp-tests.yml b/.github/workflows/cpp-tests.yml index 47fc4c08..046e361e 100644 --- a/.github/workflows/cpp-tests.yml +++ b/.github/workflows/cpp-tests.yml @@ -4,6 +4,10 @@ on: push: paths-ignore: - "*.md" + pull_request: + paths-ignore: + - "*.md" + workflow_dispatch: env: # Path to the solution file relative to the root of the project. From 7e8c97e8168b8ad42c9917b70af805e3705ff00b Mon Sep 17 00:00:00 2001 From: Charles Tytler Date: Wed, 13 Dec 2023 20:10:27 -0800 Subject: [PATCH 2/4] Add event triggers to reactjs-tests.yml workflow action --- .github/workflows/reactjs-tests.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/reactjs-tests.yml b/.github/workflows/reactjs-tests.yml index 28751f74..29621e5c 100644 --- a/.github/workflows/reactjs-tests.yml +++ b/.github/workflows/reactjs-tests.yml @@ -5,8 +5,14 @@ name: reactjs-tests on: push: + branches: + - master paths-ignore: - "*.md" + pull_request: + paths-ignore: + - "*.md" + workflow_dispatch: jobs: build: From c7b226fa93cc8e59bb5619a921a4617d1e1ec285 Mon Sep 17 00:00:00 2001 From: Charles Tytler Date: Wed, 13 Dec 2023 20:12:17 -0800 Subject: [PATCH 3/4] Limit on:push event triggers in cpp-tests.yml action to master branch only --- .github/workflows/cpp-tests.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/cpp-tests.yml b/.github/workflows/cpp-tests.yml index 046e361e..fcfe70c2 100644 --- a/.github/workflows/cpp-tests.yml +++ b/.github/workflows/cpp-tests.yml @@ -2,6 +2,8 @@ name: cpp-tests on: push: + branches: + - master paths-ignore: - "*.md" pull_request: From f541d2c95315acfaa38fee0cf6232d5bba12191d Mon Sep 17 00:00:00 2001 From: Charles Tytler Date: Wed, 13 Dec 2023 20:13:29 -0800 Subject: [PATCH 4/4] Add event triggers to clang-format.yml workflow action --- .github/workflows/clang-format.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clang-format.yml b/.github/workflows/clang-format.yml index ea2945bf..da58c64a 100644 --- a/.github/workflows/clang-format.yml +++ b/.github/workflows/clang-format.yml @@ -1,6 +1,11 @@ name: clang-format -on: [push] +on: + push: + branches: + - master + pull_request: + workflow_dispatch: jobs: build: