From 04587cbded614ab71f9c88073b5a1af382c254ed Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 8 Dec 2025 22:48:33 +0000 Subject: [PATCH] Restrict workflow to source file changes only Add path filters to test workflow to prevent unnecessary CI runs on documentation changes. Workflow now only triggers on: - Source files (src/**) - Test files (tests/**) - Build configuration (package.json, tsconfig.json, etc.) - Workflow file itself This prevents the workflow from running when README or other docs are updated. --- .github/workflows/test.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c7a67eb..3ec483b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,8 +3,26 @@ name: Tests on: pull_request: branches: [main, master] + paths: + - 'src/**' + - 'tests/**' + - 'package.json' + - 'package-lock.json' + - 'tsconfig.json' + - 'jest.config.js' + - 'eslint.config.js' + - '.github/workflows/test.yml' push: branches: [main, master] + paths: + - 'src/**' + - 'tests/**' + - 'package.json' + - 'package-lock.json' + - 'tsconfig.json' + - 'jest.config.js' + - 'eslint.config.js' + - '.github/workflows/test.yml' workflow_dispatch: # Allows manual trigger permissions: