Repository navigation
Expand file tree
/
Copy pathaction.yaml
More file actions
38 lines (38 loc) · 1.45 KB
/
Copy pathaction.yaml
File metadata and controls
38 lines (38 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Upload Coverage
description: Upload a Cobertura XML coverage report to GitHub Code Quality.
author: devantler-tech
inputs:
file:
description: Path to the Cobertura XML coverage report to upload.
required: true
language:
description: Linguist language name for the report (e.g. "Go", "C#", "TypeScript").
required: true
label:
description: Label for the coverage report (e.g. "code-coverage/go").
required: false
default: code-coverage
fail-on-error:
description: >-
Fail the step if the GitHub Code Quality upload fails. Defaults to "false" so a transient
preview-period hiccup never blocks CI; upload errors are still surfaced as ::error::
annotations. Set to "true" once the feature is generally available.
required: false
default: "false"
token:
description: >-
GitHub token with the `code-quality: write` permission. Defaults to the workflow token. The
CALLING job must grant `code-quality: write` — a composite action cannot declare it itself.
required: false
default: ${{ github.token }}
runs:
using: composite
steps:
- name: 📊 Upload coverage to GitHub Code Quality
uses: actions/upload-code-coverage@2b21a77928be8d5168c2b9581a67f2adbebacc52 # v1.4.4
with:
file: ${{ inputs.file }}
language: ${{ inputs.language }}
label: ${{ inputs.label }}
fail-on-error: ${{ inputs.fail-on-error }}
token: ${{ inputs.token }}