Skip to content

Commit 1e99df3

Browse files
committed
Run all files mutations tests only if any are changed in the package
1 parent 3c316c2 commit 1e99df3

File tree

1 file changed

+13
-0
lines changed
  • .github/actions/mutation-tests-all-files

1 file changed

+13
-0
lines changed

.github/actions/mutation-tests-all-files/action.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,20 @@ runs:
1919
- name: Setup environment
2020
uses: ./.github/actions/setup
2121

22+
- name: Get changed files
23+
uses: tj-actions/[email protected]
24+
id: changed-files
25+
with:
26+
files_yaml: |
27+
src:
28+
- 'src/**/*.ts'
29+
- '!src/**/*.spec.ts'
30+
- '!src/**/__mocks__/**'
31+
separator: "','"
32+
path: ${{ inputs.working-directory }}
33+
2234
- name: Run mutation tests
35+
if: steps.changed-files.outputs.src_any_changed == 'true'
2336
env:
2437
STRYKER_DASHBOARD_API_KEY: ${{ inputs.stryker_dashboard_api_key }}
2538
shell: bash

0 commit comments

Comments
 (0)