Skip to content

Commit

Permalink
[WIP] Dedupe event trigger and inline JUnit XML processing in CI work…
Browse files Browse the repository at this point in the history
…flow
  • Loading branch information
aj-stein-nist committed Feb 16, 2024
1 parent 1e838c9 commit b345a0e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Rationale and instructions for this GitHub Actions workflow:
# https://github.com/EnricoMi/publish-unit-test-result-action?tab=readme-ov-file#support-fork-repositories-and-dependabot-branches

name: Test Results
name: Publish Test Results
on:
workflow_run:
workflows: ["CI"]
Expand All @@ -27,6 +27,12 @@ jobs:
uses: EnricoMi/publish-unit-test-result-action@8885e273a4343cd7b48eaa72428dea0c3067ea98
with:
commit: ${{ github.event.workflow_run.head_sha }}
action_fail: true
event_file: artifacts/Test Results Event/event.json
event_name: ${{ github.event.workflow_run.event }}
github_token: ${{ secrets.GITHUB_TOKEN }}
check_name: XSpec Test Results
comment_mode: always
files: "**/*_junit-report.xml"
report_individual_runs: true
deduplicate_classes_by_file_name: false
14 changes: 2 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches:
- main
- dev
- develop
pull_request: {}
permissions:
checks: write
Expand Down Expand Up @@ -36,17 +36,6 @@ jobs:
run: |
make -C src spec-test
id: spec-tests
# Publish the test summary as comment on the PR
- name: Publish XSpec Test Results Summary
uses: EnricoMi/publish-unit-test-result-action@8885e273a4343cd7b48eaa72428dea0c3067ea98
if: runner.os == 'Linux'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
check_name: XSpec Test Results
comment_mode: always
files: "**/*_junit-report.xml"
report_individual_runs: true
deduplicate_classes_by_file_name: false
- name: Upload test results
if: always()
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
Expand All @@ -57,6 +46,7 @@ jobs:
event_file:
name: "Upload Results to Event File"
runs-on: ubuntu-20.04
needs: test
steps:
- name: Upload
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
Expand Down

0 comments on commit b345a0e

Please sign in to comment.