Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 19 additions & 7 deletions .github/workflows/testrun.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
run: |
ls -larth ./
ls -larth target/
find target/ -name 'TEST-*.xml' -print0 | awk -F":" '{print $1}'
find target/ -name 'TEST-*.xml' -print0 | xargs -0 -r grep testsuite | grep testng | grep tests= | awk -F":" '{print $1,$2}' | awk -F" " '{print $1,$5}'
find target/ -name 'TEST-*.xml' -print0 | xargs -0 -r grep testsuite | grep surefire | grep tests= | awk -F":" '{print $1,$6}' | awk -F" " '{print $1, $6}'

- name: Load Allure test report history
uses: actions/checkout@v4
Expand All @@ -51,13 +54,6 @@ jobs:
ref: gh-pages
path: gh-pages

- name: Generate Test badge
if: success() || failure()
uses: gaelgirodon/ci-badges-action@v1
with:
gist-id: ${{ secrets.GIST_ID }}
token: ${{ secrets.GIST_TOKEN }}

- name: Build allure test report
uses: simple-elf/allure-report-action@v1.7
if: always()
Expand All @@ -80,6 +76,22 @@ jobs:
path: |
allure-history

- name: Stage only current surefire reports
run: |
rm -rf badges-input
mkdir -p badges-input
cp -r target/surefire-reports/junitreports badges-input/
[[ -d target/failsafe-reports ]] && cp -r target/failsafe-reports/junitreports badges-input/
find target/ -name '*.xml' -delete
find gh-pages/ -name '*.xml' -delete

- name: Generate Test badge
if: success() || failure()
uses: gaelgirodon/ci-badges-action@v1
with:
gist-id: ${{ secrets.GIST_ID }}
token: ${{ secrets.GIST_TOKEN }}

publish-reports:
name: Upload and Publish Reports to GitHub Pages
needs: test
Expand Down