From 22eb277be7b349f14b8480969f5d3367b013d6a1 Mon Sep 17 00:00:00 2001 From: Oz Date: Sat, 9 Dec 2023 21:02:33 +0100 Subject: [PATCH] Run tests on every push --- .github/workflows/test_macos.yml | 15 +++++++++------ .github/workflows/test_ubuntu.yml | 15 +++++++++------ .github/workflows/test_windows.yml | 15 +++++++++------ 3 files changed, 27 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test_macos.yml b/.github/workflows/test_macos.yml index d949402e..512df7ef 100644 --- a/.github/workflows/test_macos.yml +++ b/.github/workflows/test_macos.yml @@ -1,14 +1,17 @@ name: Test on macOS -on: [pull_request, push] +on: + pull_request: + push: + paths: + - 'cmake/**' + - 'include/**' + - 'src/**' + - 'tests/**' + - 'CMakeLists.txt' jobs: build_macos: runs-on: macos-latest - if: | - github.event_name == 'pull_request' - || contains(github.event.head_commit.message, '[test]') - || contains(github.event.head_commit.message, '[test-macos]') - || startsWith(github.ref, 'refs/tags/v') strategy: fail-fast: false diff --git a/.github/workflows/test_ubuntu.yml b/.github/workflows/test_ubuntu.yml index be5dfd96..42993722 100644 --- a/.github/workflows/test_ubuntu.yml +++ b/.github/workflows/test_ubuntu.yml @@ -1,14 +1,17 @@ name: Test on Ubuntu -on: [pull_request, push] +on: + pull_request: + push: + paths: + - 'cmake/**' + - 'include/**' + - 'src/**' + - 'tests/**' + - 'CMakeLists.txt' jobs: build_linux: runs-on: ubuntu-latest - if: | - github.event_name == 'pull_request' - || contains(github.event.head_commit.message, '[test]') - || contains(github.event.head_commit.message, '[test-linux]') - || startsWith(github.ref, 'refs/tags/v') strategy: fail-fast: false diff --git a/.github/workflows/test_windows.yml b/.github/workflows/test_windows.yml index 700bd431..94801200 100644 --- a/.github/workflows/test_windows.yml +++ b/.github/workflows/test_windows.yml @@ -1,14 +1,17 @@ name: Test on Windows -on: [pull_request, push] +on: + pull_request: + push: + paths: + - 'cmake/**' + - 'include/**' + - 'src/**' + - 'tests/**' + - 'CMakeLists.txt' jobs: build_win: runs-on: windows-latest - if: | - github.event_name == 'pull_request' - || contains(github.event.head_commit.message, '[test]') - || contains(github.event.head_commit.message, '[test-win]') - || startsWith(github.ref, 'refs/tags/v') strategy: fail-fast: false