Skip to content

Commit

Permalink
Fix report merging in E2E tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mmuzikar committed Dec 20, 2023
1 parent ac32dd6 commit 3749479
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .github/workflows/e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
push:
branches:
- main
- mmuzikar-ci-test-branch
paths-ignore:
- '**.md'

Expand Down Expand Up @@ -142,7 +143,7 @@ jobs:
cp $REPORT_DIR/cucumber-reports/* results/$REPORT_DIR/
ls $REPORT_DIR/cucumber-reports/
- name: Archive test artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: 'test-${{ env.REPORT_DIR }}'
Expand All @@ -151,13 +152,13 @@ jobs:
${{ env.REPORT_DIR }}/*.log
${{ env.REPORT_DIR }}/cucumber-reports/*
- name: Archive failed test reports
uses: actions/upload-artifact@v3
if: always()
with:
name: 'test-results'
path: |
results/**/*
# - name: Archive failed test reports
# uses: actions/upload-artifact@v4
# if: always()
# with:
# name: 'test-results'
# path: |
# results/**/*

publish-results:
runs-on: ubuntu-latest
Expand All @@ -169,9 +170,9 @@ jobs:
pull-requests: write
steps:
- name: Download Test Results
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: 'test-results'
pattern: 'test-*'
path: 'test-results'
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand All @@ -180,12 +181,16 @@ jobs:
files: |
**/Cucumber.xml
json_file: results.json
- run: |
tree
cat results.json
- name: Install xmllint
run: sudo apt-get install -y xmlstarlet jq
- name: Generate summary
run: |
export CHECK_URL=$(jq -r .check_url results.json)
wget https://raw.githubusercontent.com/hawtio/hawtio/3.x/tests/hawtio-test-suite/process_test_results.sh
wget https://raw.githubusercontent.com/hawtio/hawtio/1af5615bc5fa8cdfa5520e6613d4367fa10b30c7/tests/hawtio-test-suite/process_test_results.sh
wget https://raw.githubusercontent.com/hawtio/hawtio/3.x/tests/hawtio-test-suite/pr_results_template.xsl
bash process_test_results.sh test-results > summary.md
- name: Update summary
Expand Down

0 comments on commit 3749479

Please sign in to comment.