mirror of
https://github.com/irongut/CodeCoverageSummary.git
synced 2026-05-19 08:20:13 +02:00
added Action metadata
This commit is contained in:
+11
@@ -11,6 +11,17 @@ RUN dotnet build CodeCoverageSummary/CodeCoverageSummary.csproj -c Release -o /a
|
|||||||
FROM build AS publish
|
FROM build AS publish
|
||||||
RUN dotnet publish CodeCoverageSummary/CodeCoverageSummary.csproj -c Release -o /app/publish
|
RUN dotnet publish CodeCoverageSummary/CodeCoverageSummary.csproj -c Release -o /app/publish
|
||||||
|
|
||||||
|
# Label the container
|
||||||
|
LABEL maintainer="Irongut <murray.dave@outlook.com>"
|
||||||
|
LABEL repository="https://github.com/irongut/CodeCoverageSummary"
|
||||||
|
LABEL homepage="https://github.com/irongut/CodeCoverageSummary"
|
||||||
|
|
||||||
|
# Label as GitHub Action
|
||||||
|
LABEL com.github.actions.name="Code Coverage Summary"
|
||||||
|
LABEL com.github.actions.description="A GitHub Action that reads Cobertura format code coverage files and outputs a summary."
|
||||||
|
LABEL com.github.actions.icon="book-open"
|
||||||
|
LABEL com.github.actions.color="purple"
|
||||||
|
|
||||||
FROM base AS final
|
FROM base AS final
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=publish /app/publish .
|
COPY --from=publish /app/publish .
|
||||||
|
|||||||
+31
@@ -0,0 +1,31 @@
|
|||||||
|
name: 'Code Coverage Summary'
|
||||||
|
author: 'Irongut <murray.dave@outlook.com>'
|
||||||
|
description: 'A GitHub Action that reads Cobertura format code coverage files and outputs a summary.'
|
||||||
|
branding:
|
||||||
|
icon: book-open
|
||||||
|
color: purple
|
||||||
|
inputs:
|
||||||
|
filename:
|
||||||
|
description: 'Code coverage file to analyse.'
|
||||||
|
required: true
|
||||||
|
default: ''
|
||||||
|
badge:
|
||||||
|
description: 'Include a badge in the output - true / false (default).'
|
||||||
|
required: false
|
||||||
|
format:
|
||||||
|
description: 'Output Format - markdown or text (default).'
|
||||||
|
required: false
|
||||||
|
output:
|
||||||
|
description: 'Output Type - console (default), file or both.'
|
||||||
|
required: false
|
||||||
|
runs:
|
||||||
|
using: 'docker'
|
||||||
|
image: 'Dockerfile'
|
||||||
|
args:
|
||||||
|
- ${{ inputs.filename }}
|
||||||
|
- '--badge'
|
||||||
|
- ${{ inputs.badge }}
|
||||||
|
- '--format'
|
||||||
|
- ${{ inputs.format }}
|
||||||
|
- '--output'
|
||||||
|
- ${{ inputs.output }}
|
||||||
Reference in New Issue
Block a user