Skip to content

Commit

Permalink
Add cobertura field to Reports
Browse files Browse the repository at this point in the history
  • Loading branch information
draoncc committed May 5, 2022
1 parent 5715741 commit 3fd91be
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GitLab/Reports/Type.dhall
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ junit : Optional (List Text) }
{ junit : Optional (List Text), cobertura : Optional Text }
4 changes: 3 additions & 1 deletion GitLab/Reports/append.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ let append
: Reports Reports Reports
= λ(a : Reports)
λ(b : Reports)
{ junit = mergeOptionalList Text a.junit b.junit }
{ junit = mergeOptionalList Text a.junit b.junit
, cobertura = b.cobertura
}

in append
2 changes: 1 addition & 1 deletion GitLab/Reports/default.dhall
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ junit = None (List Text) } : ./Type.dhall
{ junit = None (List Text), cobertura = None Text } : ./Type.dhall
6 changes: 6 additions & 0 deletions GitLab/Reports/toJSON.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ in let Reports/toJSON
JSON.Type
stringsArray
reports.junit
, cobertura =
Optional/map
Text
JSON.Type
JSON.string
reports.cobertura
}

in JSON.object (dropNones Text JSON.Type everything)
Expand Down

0 comments on commit 3fd91be

Please sign in to comment.