Skip to content

Commit

Permalink
Merge branch 'ci/test_report'
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasssvaz committed Dec 18, 2024
2 parents bd7a74e + 36c337b commit 26b3d48
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/tests_results.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,16 @@ jobs:
files: ./artifacts/**/*.xml
action_fail: true
compare_to_earlier_commit: false
json_file: ./validation_results.json
json_suite_details: true

- name: Upload JSON
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: test_results
path: ./validation_results.json
overwrite: true

- name: Fail if tests failed
if: ${{ env.original_conclusion == 'failure' || env.original_conclusion == 'timed_out' || github.event.workflow_run.conclusion == 'failure' || github.event.workflow_run.conclusion == 'timed_out' }}
Expand Down Expand Up @@ -138,11 +148,14 @@ jobs:
})).data;
core.info(`${name} is ${state}`);
- name: Create output folder
- name: Generate report
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }} # codespell:ignore cancelled
run: |
rm -rf artifacts
rm -rf artifacts runtime-tests-results/RUNTIME_TESTS_REPORT.md
mkdir -p runtime-tests-results
mv -f ./validation_results.json ./runtime-tests-results/validation_results.json
touch ./runtime-tests-results/RUNTIME_TESTS_REPORT.md
- name: Generate badge
if: ${{ !cancelled() && (env.original_event == 'schedule' || env.original_event == 'workflow_dispatch') }} # codespell:ignore cancelled
Expand All @@ -161,6 +174,6 @@ jobs:
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
if [[ `git status --porcelain` ]]; then
git add --all
git commit -m "Updated runtime tests badge"
git commit -m "Updated runtime tests report"
git push origin HEAD:gh-pages
fi

0 comments on commit 26b3d48

Please sign in to comment.