Skip to content

Commit

Permalink
Merge pull request #4 from testainers/dev
Browse files Browse the repository at this point in the history
Adding coverage report resource overwrite.
  • Loading branch information
edufolly authored Jul 8, 2023
2 parents f1ca933 + 8a74df8 commit 3139e81
Show file tree
Hide file tree
Showing 3 changed files with 274 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ jobs:
name: Build
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
steps:
- name: Code Checkout
uses: actions/checkout@v3
Expand Down Expand Up @@ -69,6 +71,10 @@ jobs:
tag: ${{ env.VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Overwrite Coverage Theme
run: |
/bin/cp -rf helpers/coverage/* build/coverage/.
- name: Publishing to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
Expand Down
13 changes: 13 additions & 0 deletions helpers/coverage/jacoco-resources/prettify.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/* Pretty printing styles. Used with prettify.js. */

.str { color: #ecc48d; }
.kwd { color: #f7768e; font-weight: bold; }
.com { color: #86c1b9; font-style: italic; }
.typ { color: #b8b8f3; font-weight: bold; }
.lit { color: #7b9df9; }
.pun { color: #f9a8d4; }
.pln { color: #d4d4d4; }
.tag { color: #008; font-weight: bold; }
.atn { color: #606; font-weight: bold; }
.atv { color: #080; }
.dec { color: #606; }
255 changes: 255 additions & 0 deletions helpers/coverage/jacoco-resources/report.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,255 @@
body, td {
font-family: sans-serif;
font-size: 10pt;
color: #ffffff; /* cor do texto */
background-color: #222222; /* cor de fundo */
}

h1 {
font-weight: bold;
font-size: 18pt;
color: #ffffff; /* cor do título */
}

.breadcrumb {
border: #d6d3ce 1px solid;
padding: 2px 4px 2px 4px;
background-color: #333333; /* cor de fundo da breadcrumb */
color: #ffffff; /* cor do texto da breadcrumb */
}

.breadcrumb .info a {
margin-left: 8px;
color: #ffffff; /* cor dos links da breadcrumb */
}

.el_report,
.el_group,
.el_bundle,
.el_package,
.el_class,
.el_source,
.el_method,
.el_session {
padding-left: 18px;
background-position: left center;
background-repeat: no-repeat;
color: #ffffff; /* cor do texto */
}

.el_report {
background-image: url(report.gif);
}

.el_group {
background-image: url(group.gif);
}

.el_bundle {
background-image: url(bundle.gif);
}

.el_package {
background-image: url(package.gif);
}

.el_class {
background-image: url(class.gif);
}

.el_source {
background-image: url(source.gif);
}

.el_method {
background-image: url(method.gif);
}

.el_session {
background-image: url(session.gif);
}

pre.source {
border: #d6d3ce 1px solid;
font-family: monospace;
color: #ffffff; /* cor do texto */
background-color: #333333; /* cor de fundo */
}

pre.source li {
border-left: 1px solid #d6d3ce;
color: #a0a0a0;
padding-left: 0px;
}

pre.source span.fc {
background-color: #224422; /* cor de fundo dos spans .fc */
}

pre.source span.nc {
background-color: #662222; /* cor de fundo dos spans .nc */
}

pre.source span.pc {
background-color: #666622; /* cor de fundo dos spans .pc */
}

pre.source span.bfc {
background-image: url(branchfc.gif);
background-repeat: no-repeat;
background-position: 2px center;
}

pre.source span.bfc:hover {
background-color: #228822; /* cor de fundo hover dos spans .bfc */
}

pre.source span.bnc {
background-image: url(branchnc.gif);
background-repeat: no-repeat;
background-position: 2px center;
}

pre.source span.bnc:hover {
background-color: #882222; /* cor de fundo hover dos spans .bnc */
}

pre.source span.bpc {
background-image: url(branchpc.gif);
background-repeat: no-repeat;
background-position: 2px center;
}

pre.source span.bpc:hover {
background-color: #888822; /* cor de fundo hover dos spans .bpc */
}

/* Java Code */

pre.source.lang-java.linenums {
background-color: #2f3032;
color: #d4d4d4;
padding: 10px;
font-family: monospace;
font-size: 12px;
line-height: 1.4;
overflow-x: auto;
border-radius: 4px;
}

pre.source.lang-java.linenums code {
display: block;
}

/* Fim Java Code */

table.coverage {
empty-cells: show;
border-collapse: collapse;
color: #ffffff; /* cor do texto */
}

table.coverage thead {
background-color: #333333; /* cor de fundo do cabeçalho da tabela */
color: #ffffff; /* cor do texto do cabeçalho da tabela */
}

table.coverage thead td {
white-space: nowrap;
padding: 12px 18px;
border-bottom: 1px solid #555555;
font-weight: bold;
}

table.coverage thead td.bar {
border-left: #cccccc 1px solid;
}

table.coverage thead td.ctr1 {
text-align: right;
border-left: #cccccc 1px solid;
}

table.coverage thead td.ctr2 {
text-align: right;
padding-left: 2px;
}

table.coverage thead td.sortable {
cursor: pointer;
background-image: url(sort.gif);
background-position: right center;
background-repeat: no-repeat;
}

table.coverage thead td.up {
background-image: url(up.gif);
}

table.coverage thead td.down {
background-image: url(down.gif);
}

table.coverage tbody td {
white-space: nowrap;
padding: 12px 18px;
border-bottom: 1px solid #555555;
}

table.coverage tbody tr:hover {
background: #444444; /* cor de fundo hover das linhas da tabela */
}

table.coverage tbody td.bar {
border-left: #e8e8e8 1px solid;
}

table.coverage tbody td.ctr1 {
text-align: right;
padding-right: 18px;
border-left: #e8e8e8 1px solid;
}

table.coverage tbody td.ctr2 {
text-align: right;
padding-right: 18px;
padding-left: 2px;
}

table.coverage tfoot td {
white-space: nowrap;
padding: 12px 18px;
}

table.coverage tfoot td.bar {
border-left: #e8e8e8 1px solid;
}

table.coverage tfoot td.ctr1 {
text-align: right;
padding-right: 18px;
border-left: #e8e8e8 1px solid;
}

table.coverage tfoot td.ctr2 {
text-align: right;
padding-right: 18px;
padding-left: 2px;
}

.footer {
margin-top: 20px;
border-top: #d6d3ce 1px solid;
padding-top: 2px;
font-size: 8pt;
color: #a0a0a0;
}

.footer a {
color: #a0a0a0;
}

.right {
float: right;
}

0 comments on commit 3139e81

Please sign in to comment.