/
githubmirror
/
spark
Обзор
Документация
Войти
/
githubmirror
/
spark
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
.github/workflows/test_report.yml
60 строк
2 KB
Kousuke Saruta
[SPARK-57692][INFRA] Skip test report when no test results exist
27 июн 2026, 12:55
27 июн 2026, 12:55
f5e9900
Код
Авторство
О чём код?
# # 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: Report test results on: workflow_run: workflows: ["Build"] types: - completed jobs: test_report: if: > github.event.workflow_run.path != '.github/workflows/pages.yml' && !contains(fromJson('["skipped", "cancelled"]'), github.event.workflow_run.conclusion) runs-on: ubuntu-latest permissions: actions: read checks: write contents: read steps: - name: Download test results to report uses: actions/download-artifact@v8 with: github-token: ${{ secrets.GITHUB_TOKEN }} run-id: ${{ github.event.workflow_run.id }} pattern: "test-*" - name: Check if test results exist id: check run: | if find . -path '*/target/test-reports/*.xml' -print -quit | grep -q .; then echo "has_results=true" >> $GITHUB_OUTPUT else echo "No test result files found. Skipping report." echo "has_results=false" >> $GITHUB_OUTPUT fi - name: Publish test report if: steps.check.outputs.has_results == 'true' uses: scacap/action-surefire-report@5609ce4db72c09db044803b344a8968fd1f315da with: check_name: Report test results github_token: ${{ secrets.GITHUB_TOKEN }} report_paths: "**/target/test-reports/*.xml" commit: ${{ github.event.workflow_run.head_commit.id }}