Skip to content

Commit

Permalink
Fix: File Filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
Guri999 committed Jan 14, 2025
1 parent b433693 commit 4f0e5d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/dev-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- name: Filter out test files
id: test_files
run: |
TEST_FILES=$(echo "${{ steps.changed_files.outputs.all_changed_files }}" | grep -E '/src/test/kotlin/.*\.kt$' | sed -E 's|([^/]+)/src/test/kotlin/(.*)\.kt$|\1:testDebugUnitTest --tests "\2"|' | sed 's|/|.|g')
TEST_FILES=$(echo "${{ steps.changed_files.outputs.all_changed_files }}" | grep -E '^.+/src/test/kotlin/.+\.kt$' | sed -E 's|([^/]+)/src/test/kotlin/(.*)\.kt$|\1:testDebugUnitTest --tests "\2"|' | sed 's|/|.|g')
echo "TEST_FILES=$TEST_FILES" >> $GITHUB_ENV
if [ -n "$TEST_FILES" ]; then
echo "any_changed=true" >> $GITHUB_ENV
Expand Down

0 comments on commit 4f0e5d2

Please sign in to comment.