From 4d5835baef6ad2e922b395fd15a3a7cd37ac49c4 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Tue, 24 Nov 2026 16:38:13 +0000 Subject: [PATCH] only run php tests when php-related files change Amp-Thread-ID: https://ampcode.com/threads/T-01a20e63-605e-73ef-8dd0-976323b6f016 Co-authored-by: Amp --- .github/workflows/tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 03e9c85..9feaa8d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,29 @@ on: # zizmor: ignore[concurrency-limits] branches: - main - "*.x" + paths: + - "config/**" + - "lang/**" + - "resources/views/**" + - "routes/**" + - "src/**" + - "tests/**" + - "composer.json" + - "phpunit.xml" + - ".github/workflows/tests.yml" + - "**.php" pull_request: + paths: + - "config/**" + - "lang/**" + - "resources/views/**" + - "routes/**" + - "src/**" + - "tests/**" + - "composer.json" + - "phpunit.xml" + - ".github/workflows/tests.yml" + - "**.php" permissions: contents: read