Skip to content

Commit

Permalink
Include the removeHtmlDates.sh script in test-results artifacts
Browse files Browse the repository at this point in the history
And use one in the collate-test-results job, since we're no longer
using the test-results-combined artifact (which included just that
same one version of the removeHtmlDates.sh script).
  • Loading branch information
pcolby committed Dec 16, 2023
1 parent 1e6b589 commit 0072906
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ jobs:
name: test-results-${{ env.dokitVersion }}
path: |
${{ runner.temp }}/coverage.info
${{ runner.temp }}/removeHtmlDates.sh
${{ runner.temp }}/test/**/*.tap
if-no-files-found: ignore
if-no-files-found: error
- name: Prep combined test results
run: |
find "$RUNNER_TEMP" \( -name 'coverage.info' -or -name '*.tap' \) -printf '%P\0' |
Expand Down Expand Up @@ -144,8 +145,9 @@ jobs:
name: test-results-${{ env.dokitVersion }}
path: |
${{ runner.temp }}/coverage.info
${{ runner.temp }}/removeHtmlDates.sh
${{ runner.temp }}/test/**/*.tap
if-no-files-found: ignore
if-no-files-found: error
- name: Prep combined test results
run: |
find "$RUNNER_TEMP" \( -name 'coverage.info' -or -name '*.tap' \) -printf '%P\0' |
Expand Down Expand Up @@ -243,8 +245,9 @@ jobs:
name: test-results-${{ env.dokitVersion }}
path: |
${{ runner.temp }}/coverage.info
${{ runner.temp }}/removeHtmlDates.sh
${{ runner.temp }}/test/**/*.tap
if-no-files-found: ignore
if-no-files-found: error
- name: Prep combined test results
run: |
cd "$RUNNER_TEMP" &&
Expand Down Expand Up @@ -455,7 +458,8 @@ jobs:
# Generate the HTML report.
echo 'genhtml_sort = 0' >> ~/.lcovrc
genhtml --output-directory coverage coverage.info
/usr/bin/env bash ./artifacts/removeHtmlDates.sh
# Can use any of the removeHtmlDates.sh scripts here, so the non-cov, linux0 version will do.
/usr/bin/env bash ./artifacts/test-results-*.gcc/removeHtmlDates.sh
working-directory: ${{ runner.temp }}
- name: Upload HTML coverage report
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 0072906

Please sign in to comment.