flatcar-scripts/.github/workflows/dispatch-kola-tests.yaml
Thilo Fromm f07cb5f781 tapfile_helper ff.: support TAP and Markdown output
This change adds markdown output support to tapfile helper.
tap_generate_report() has been refactored to use low-level output
functions to write tests; TAP and markdown output is supported and both
are generated by default. Also, it should be straightforward to add
other output formats by implementing the respective low level print
functions.

The markdown output is now used by run-kola-tests.yaml to generate step
output and, if run from a PR, add a comment with test results to the PR.

Signed-off-by: Thilo Fromm <thilofromm@microsoft.com>
2023-03-29 21:05:47 +02:00

31 lines
922 B
YAML

name: Dispatch kola tests
on:
workflow_dispatch:
inputs:
workflow_name_or_id:
type: string
required: true
default: ci.yaml
description: |
The workflow name or ID from where we'll download the artifacts to be tested.
E.g. the name of the YAML file (w/o path) of the respective workflow.
workflow_run_id:
type: string
required: true
description: |
The run ID of the workflow specified in workflow_name_or_id.
You can e.g. get this from a run's URL -
https://github.com/flatcar/scripts/actions/runs/<ID> .
permissions:
pull-requests: write
jobs:
test:
name: "Trigger kola test - test"
uses: ./.github/workflows/run-kola-tests.yaml
with:
workflow_name_or_id: ${{ github.event.inputs.workflow_name_or_id }}
workflow_run_id: ${{ github.event.inputs.workflow_run_id }}