Add test reports to checks
This commit is contained in:
committed by
Wiktor Niesiobędzki
parent
ff90b736ca
commit
7ec6c686a8
33
.github/actions/post-fabric-tests/action.yml
vendored
Normal file
33
.github/actions/post-fabric-tests/action.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
# Copyright 2024 Google LLC
|
||||
#
|
||||
# Licensed 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: post-fabric-tests
|
||||
description: Create test reports
|
||||
inputs:
|
||||
MODULE:
|
||||
required: true
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Reformat test-results.xml
|
||||
shell: bash
|
||||
run: |
|
||||
sed -e 's/\\n/\n/g' test-results-raw.xml > test-results.xml
|
||||
|
||||
- name: Test report
|
||||
uses: pmeier/pytest-results-action@035bda205f160abee0b277db11ac6ca01175ca7d # v0.6.0
|
||||
with:
|
||||
path: test-results.xml
|
||||
title: ${{ inputs.MODULE }} Test report
|
||||
|
||||
Reference in New Issue
Block a user