From ff3d36e0c3889d502452607b9db0e1fb42ed7abc Mon Sep 17 00:00:00 2001 From: David Norton Date: Tue, 17 Dec 2024 07:02:58 -0600 Subject: [PATCH] re-added the code to generate code coverage for recent files, commented out, in case someone can fix it --- .github/workflows/tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3495f54c3..202b58a60 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -111,3 +111,12 @@ jobs: - name: emit hint on where to update minimum test coverage run: echo "to update minimum test coverage requirements, edit coveralls.json" + # not working correctly in GitHub actions (thus commented out for now), seems to not be getting a deep copy of all commits + # - name: generate list of files changed in the last month + # run: git diff ${{ github.event.pull_request.head.sha }} '@{last month}' --name-only | tee ./cover/files_changed_in_last_month.txt + + # - name: echo coverage header to list-of-files-changed file to assist in reporting # Requires above step to be fixed + # run: echo "LINES RELEVANT MISSED" | tee -a ./cover/files_changed_in_last_month.txt + + # - name: use grep to create test coverage report only on recently changed files, sorted by coverage percent # Requires above step to be fixed + # run: grep -F -f ./cover/files_changed_in_last_month.txt ./cover/test_coverage_by_file.txt | grep -A999 "LINES RELEVANT MISSED" | sort -g \ No newline at end of file