Skip to content

Commit de8ec12

Browse files
committed
ci: coverage-action
1 parent c51d4d2 commit de8ec12

11 files changed

Lines changed: 56190 additions & 0 deletions

File tree

dev/coverage-action/.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

dev/coverage-action/.eslintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"root": true,
3+
"extends": "standard"
4+
}

dev/coverage-action/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
/data

dev/coverage-action/.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
save-exact = true
2+
save-prefix = ""

dev/coverage-action/action.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: 'Datatracker Coverage + Changelog Parser'
2+
description: 'Parse and generate coverage and changelog files for Datatracker releases'
3+
author: Nicolas Giard
4+
inputs:
5+
token:
6+
description: GitHub Token
7+
required: true
8+
tokenCommon:
9+
description: GitHub Token for Common repository
10+
required: true
11+
repoCommon:
12+
description: Common repository containing the SVG coverage charts
13+
required: false
14+
default: 'common'
15+
version:
16+
description: Release version
17+
required: true
18+
changelog:
19+
description: Generated changelog content from Changelog Action
20+
required: true
21+
default: ''
22+
summary:
23+
description: Summary to prepend to the changelog body
24+
required: false
25+
default: ''
26+
coverageResultsPath:
27+
description: Path to the latest coverage results file
28+
required: true
29+
default: 'coverage.json'
30+
histCoveragePath:
31+
description: Path where to output the historical coverage file
32+
required: true
33+
default: 'historical-coverage.json'
34+
outputs:
35+
changelog:
36+
description: Changelog with headers prepended and coverage stats + chart appended
37+
runs:
38+
using: 'node16'
39+
main: 'dist/index.js'
40+
branding:
41+
icon: layers
42+
color: red

0 commit comments

Comments
 (0)