From c9229845fca83b235a9172ba6e4f2bdf28bc2233 Mon Sep 17 00:00:00 2001 From: Dusan Malusev Date: Mon, 27 Jan 2025 01:36:39 +0100 Subject: [PATCH] chore: run docker build if Dockerfile changes, run tests if source changes Signed-off-by: Dusan Malusev --- .github/workflows/test-images.yml | 9 ++++++++- .github/workflows/test.yml | 14 ++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-images.yml b/.github/workflows/test-images.yml index c9d6af3cc..f06590b94 100644 --- a/.github/workflows/test-images.yml +++ b/.github/workflows/test-images.yml @@ -5,7 +5,14 @@ on: - cron: '0 0 1,15 * *' workflow_call: workflow_dispatch: - + push: + branches: + - v1.3.x + paths: + - 'docker/Dockerfile' + - 'docker/php.ini' + - '.github/workflows/test-images.yml' + - '.github/workflows/docker-image.yml' jobs: build: strategy: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b1481101..8f099b4eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -5,9 +5,23 @@ on: push: branches: - v1.3.x + paths: + - 'cmake/**' + - 'src/**' + - 'include/**' + - 'utils/**' + - 'tests/**' + - '.github/workflows/test.yml' pull_request: branches: - v1.3.x + paths: + - 'cmake/**' + - 'src/**' + - 'include/**' + - 'utils/**' + - 'tests/**' + - '.github/workflows/test.yml' jobs: test: strategy: