From c051e397a7ccd456ab9e2b4c4848235399f5c5b5 Mon Sep 17 00:00:00 2001 From: Charles Tytler Date: Wed, 13 Dec 2023 20:17:36 -0800 Subject: [PATCH] Update event triggers on CI actions (#126) * 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. * Add event triggers to reactjs-tests.yml workflow action * Limit on:push event triggers to master branch only * Add event triggers to clang-format.yml workflow action --- .github/workflows/clang-format.yml | 7 ++++++- .github/workflows/cpp-tests.yml | 6 ++++++ .github/workflows/reactjs-tests.yml | 6 ++++++ 3 files changed, 18 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: diff --git a/.github/workflows/cpp-tests.yml b/.github/workflows/cpp-tests.yml index 47fc4c08..fcfe70c2 100644 --- a/.github/workflows/cpp-tests.yml +++ b/.github/workflows/cpp-tests.yml @@ -2,8 +2,14 @@ name: cpp-tests on: push: + branches: + - master paths-ignore: - "*.md" + pull_request: + paths-ignore: + - "*.md" + workflow_dispatch: env: # Path to the solution file relative to the root of the project. 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: