Skip to content

CI Test Results

CI Test Results #267

#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
#
name: CI Test Results
on:
workflow_run:
workflows: ["CI"]
types:
- completed
permissions:
contents: read
checks: write
pull-requests: write
actions: read
jobs:
test-results:
name: Publish Test Results
runs-on: ubuntu-24.04
if: github.event.workflow_run.conclusion != 'skipped'
steps:
- name: Download Test Results
uses: dawidd6/action-download-artifact@v20
with:
run_id: ${{ github.event.workflow_run.id }}
name: test-results-.*
name_is_regexp: true
path: artifacts
- name: Download Event File
uses: dawidd6/action-download-artifact@v20
with:
run_id: ${{ github.event.workflow_run.id }}
name: event-file-.*
name_is_regexp: true
path: event
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
commit: ${{ github.event.workflow_run.head_sha }}
event_file: event/event.json
event_name: ${{ github.event.workflow_run.event }}
large_files: true
report_individual_runs: true
report_suite_logs: error
files: 'artifacts/**/*.xml'