From e21f89670a7808a7325f1dcdb2a01c4138daa481 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Wed, 18 Dec 2024 23:45:28 +0100 Subject: [PATCH] Improved usage of tree command. --- .github/workflows/NightlyRelease.yml | 2 +- .github/workflows/PublishCoverageResults.yml | 8 +++----- .github/workflows/PublishTestResults.yml | 5 ++--- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/NightlyRelease.yml b/.github/workflows/NightlyRelease.yml index 6ea837a..af2e92f 100644 --- a/.github/workflows/NightlyRelease.yml +++ b/.github/workflows/NightlyRelease.yml @@ -388,7 +388,7 @@ jobs: done <<<'${{ inputs.assets }}' printf "%s\n" "Inspecting downloaded artifacts ..." - tree -L 3 . + tree -pash -L 3 . if [[ $ERROR -ne 0 ]]; then printf "%s\n" "${ANSI_LIGHT_RED}Errors detected in previous steps.${ANSI_NOCOLOR}" diff --git a/.github/workflows/PublishCoverageResults.yml b/.github/workflows/PublishCoverageResults.yml index e969688..472f263 100644 --- a/.github/workflows/PublishCoverageResults.yml +++ b/.github/workflows/PublishCoverageResults.yml @@ -84,7 +84,7 @@ jobs: - name: 🔎 Inspect extracted artifact (tarball) run: | - tree -psh artifacts + tree -pash artifacts - name: 🔧 Install coverage and tomli run: | @@ -152,11 +152,9 @@ jobs: - name: Rename .coverage files and collect them all to coverage/ run: | - ls -lAh artifacts/ - ls -lAh artifacts/*/.coverage mkdir -p coverage find artifacts/ -type f -path "*SQLite*.coverage" -exec sh -c 'cp -v $0 "coverage/$(basename $0).$(basename $(dirname $0))"' {} ';' - tree -a coverage + tree -pash coverage - name: Combine SQLite files (using Coverage.py) run: coverage combine --data-file=.coverage coverage/ @@ -177,7 +175,7 @@ jobs: run: | coverage html --data-file=.coverage -d report/coverage/html rm report/coverage/html/.gitignore - tree -a report/coverage/html + tree -pash report/coverage/html - name: 📤 Upload 'Coverage SQLite Database' artifact if: inputs.coverage_sqlite_artifact != '' diff --git a/.github/workflows/PublishTestResults.yml b/.github/workflows/PublishTestResults.yml index b76b8c8..ab6d513 100644 --- a/.github/workflows/PublishTestResults.yml +++ b/.github/workflows/PublishTestResults.yml @@ -73,7 +73,7 @@ jobs: - name: 🔎 Inspect extracted artifact (tarball) run: | - tree -psh artifacts + tree -pash artifacts - name: 🔧 Install pyEDAA.Reports (JUunit Parser and Merger) run: | @@ -82,9 +82,8 @@ jobs: - name: Move JUnit files and collect them all to junit/ run: | mkdir -p junit - ls -lAh artifacts/*/*.xml find artifacts/ -type f -path "*TestReportSummary*.xml" -exec sh -c 'cp -v $0 "junit/$(basename $(dirname $0)).$(basename $0)"' {} ';' - tree -a junit + tree -pash junit - name: 🔁 Merge JUnit Unit Test Summaries run: |