fix: Add job to test no deps

This commit is contained in:
Tom Hu
2021-07-19 08:21:05 -07:00
parent ad2b0032e0
commit 71fa76a9e4
70 changed files with 5124 additions and 4 deletions
+21
View File
@@ -1,6 +1,27 @@
name: Workflow for Codecov Action
on: [push, pull_request]
jobs:
no-deps:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Upload coverage to Codecov (script)
uses: ./
with:
files: ./coverage/script/coverage-final.json
flags: script,${{ matrix.os }}
name: codecov-script
- name: Upload coverage to Codecov (demo)
uses: ./
with:
files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json
file: ./coverage/coverage-final.json
flags: demo,${{ matrix.os }}
name: codecov-demo
run:
runs-on: ${{ matrix.os }}
strategy:
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1626377309008" clover="3.2.0">
<project timestamp="1626377309008" name="All files">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3" elements="9" coveredelements="9" complexity="0" loc="6" ncloc="6" packages="1" files="1" classes="1"/>
<file name="calculator.ts" path="/Users/thomashu/src/github/codecov/codecov-action/demo/calculator/calculator.ts">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
<line num="1" count="1" type="stmt"/>
<line num="3" count="1" type="stmt"/>
<line num="4" count="1" type="stmt"/>
<line num="7" count="1" type="stmt"/>
<line num="8" count="1" type="stmt"/>
<line num="10" count="1" type="stmt"/>
</file>
</project>
</coverage>
File diff suppressed because one or more lines are too long
+21
View File
@@ -0,0 +1,21 @@
TN:
SF:demo/calculator/calculator.ts
FN:1,(anonymous_0)
FN:3,(anonymous_2)
FN:7,(anonymous_3)
FNF:3
FNH:3
FNDA:3,(anonymous_0)
FNDA:1,(anonymous_2)
FNDA:1,(anonymous_3)
DA:1,1
DA:3,1
DA:4,1
DA:7,1
DA:8,1
DA:10,1
LF:6
LH:6
BRF:0
BRH:0
end_of_record
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1626218062386" clover="3.2.0">
<project timestamp="1626218062387" name="All files">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3" elements="9" coveredelements="9" complexity="0" loc="6" ncloc="6" packages="1" files="1" classes="1"/>
<file name="calculator.ts" path="/Users/thomashu/src/github/codecov/codecov-action/demo/calculator/calculator.ts">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
<line num="1" count="1" type="stmt"/>
<line num="3" count="1" type="stmt"/>
<line num="4" count="1" type="stmt"/>
<line num="7" count="1" type="stmt"/>
<line num="8" count="1" type="stmt"/>
<line num="10" count="1" type="stmt"/>
</file>
</project>
</coverage>
File diff suppressed because one or more lines are too long
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1626377310535" clover="3.2.0">
<project timestamp="1626377310535" name="All files">
<metrics statements="10" coveredstatements="8" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="3" elements="18" coveredelements="13" complexity="0" loc="10" ncloc="10" packages="1" files="1" classes="1"/>
<file name="coverage.ts" path="/Users/thomashu/src/github/codecov/codecov-action/demo/coverage-test/coverage.ts">
<metrics statements="10" coveredstatements="8" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="3"/>
<line num="1" count="1" type="stmt"/>
<line num="4" count="2" type="cond" truecount="1" falsecount="1"/>
<line num="5" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="6" count="1" type="stmt"/>
<line num="8" count="0" type="stmt"/>
<line num="13" count="2" type="stmt"/>
<line num="14" count="1" type="stmt"/>
<line num="18" count="2" type="stmt"/>
<line num="19" count="0" type="stmt"/>
<line num="21" count="1" type="stmt"/>
</file>
</project>
</coverage>
File diff suppressed because one or more lines are too long
+31
View File
@@ -0,0 +1,31 @@
TN:
SF:demo/coverage-test/coverage.ts
FN:1,(anonymous_0)
FN:4,(anonymous_2)
FN:13,(anonymous_3)
FN:18,(anonymous_4)
FNF:4
FNH:3
FNDA:3,(anonymous_0)
FNDA:1,(anonymous_2)
FNDA:1,(anonymous_3)
FNDA:0,(anonymous_4)
DA:1,1
DA:4,2
DA:5,1
DA:6,1
DA:8,0
DA:13,2
DA:14,1
DA:18,2
DA:19,0
DA:21,1
LF:10
LH:8
BRDA:4,0,0,1
BRDA:4,0,1,0
BRDA:5,1,0,1
BRDA:5,1,1,0
BRF:4
BRH:2
end_of_record
+21
View File
@@ -0,0 +1,21 @@
TN:
SF:demo/calculator/calculator.ts
FN:1,(anonymous_0)
FN:3,(anonymous_2)
FN:7,(anonymous_3)
FNF:3
FNH:3
FNDA:3,(anonymous_0)
FNDA:1,(anonymous_2)
FNDA:1,(anonymous_3)
DA:1,1
DA:3,1
DA:4,1
DA:7,1
DA:8,1
DA:10,1
LF:6
LH:6
BRF:0
BRH:0
end_of_record
+132
View File
@@ -0,0 +1,132 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1626377307434" clover="3.2.0">
<project timestamp="1626377307434" name="All files">
<metrics statements="108" coveredstatements="104" conditionals="61" coveredconditionals="57" methods="12" coveredmethods="11" elements="181" coveredelements="172" complexity="0" loc="108" ncloc="108" packages="3" files="3" classes="3"/>
<package name="demo.calculator">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
<file name="calculator.ts" path="/Users/thomashu/src/github/codecov/codecov-action/demo/calculator/calculator.ts">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
<line num="1" count="1" type="stmt"/>
<line num="3" count="1" type="stmt"/>
<line num="4" count="1" type="stmt"/>
<line num="7" count="1" type="stmt"/>
<line num="8" count="1" type="stmt"/>
<line num="10" count="1" type="stmt"/>
</file>
</package>
<package name="demo.coverage-test">
<metrics statements="10" coveredstatements="8" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="3"/>
<file name="coverage.ts" path="/Users/thomashu/src/github/codecov/codecov-action/demo/coverage-test/coverage.ts">
<metrics statements="10" coveredstatements="8" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="3"/>
<line num="1" count="1" type="stmt"/>
<line num="4" count="2" type="cond" truecount="1" falsecount="1"/>
<line num="5" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="6" count="1" type="stmt"/>
<line num="8" count="0" type="stmt"/>
<line num="13" count="2" type="stmt"/>
<line num="14" count="1" type="stmt"/>
<line num="18" count="2" type="stmt"/>
<line num="19" count="0" type="stmt"/>
<line num="21" count="1" type="stmt"/>
</file>
</package>
<package name="src">
<metrics statements="92" coveredstatements="90" conditionals="57" coveredconditionals="55" methods="5" coveredmethods="5"/>
<file name="buildExec.ts" path="/Users/thomashu/src/github/codecov/codecov-action/src/buildExec.ts">
<metrics statements="92" coveredstatements="90" conditionals="57" coveredconditionals="55" methods="5" coveredmethods="5"/>
<line num="1" count="1" type="stmt"/>
<line num="2" count="1" type="stmt"/>
<line num="5" count="1" type="stmt"/>
<line num="7" count="1" type="stmt"/>
<line num="9" count="1" type="stmt"/>
<line num="10" count="6" type="stmt"/>
<line num="11" count="6" type="stmt"/>
<line num="20" count="1" type="stmt"/>
<line num="21" count="2" type="stmt"/>
<line num="22" count="2" type="stmt"/>
<line num="23" count="2" type="stmt"/>
<line num="24" count="2" type="stmt"/>
<line num="25" count="2" type="stmt"/>
<line num="26" count="2" type="stmt"/>
<line num="27" count="2" type="stmt"/>
<line num="28" count="2" type="stmt"/>
<line num="29" count="2" type="stmt"/>
<line num="30" count="2" type="stmt"/>
<line num="31" count="2" type="stmt"/>
<line num="32" count="2" type="stmt"/>
<line num="33" count="2" type="stmt"/>
<line num="34" count="2" type="stmt"/>
<line num="35" count="2" type="stmt"/>
<line num="36" count="2" type="stmt"/>
<line num="37" count="2" type="stmt"/>
<line num="38" count="2" type="stmt"/>
<line num="39" count="2" type="stmt"/>
<line num="40" count="2" type="stmt"/>
<line num="41" count="2" type="stmt"/>
<line num="42" count="2" type="stmt"/>
<line num="43" count="2" type="stmt"/>
<line num="45" count="2" type="stmt"/>
<line num="46" count="2" type="stmt"/>
<line num="53" count="2" type="stmt"/>
<line num="54" count="2" type="stmt"/>
<line num="63" count="2" type="stmt"/>
<line num="64" count="3" type="stmt"/>
<line num="65" count="3" type="stmt"/>
<line num="66" count="3" type="cond" truecount="2" falsecount="0"/>
<line num="67" count="2" type="stmt"/>
<line num="68" count="2" type="stmt"/>
<line num="72" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="73" count="1" type="stmt"/>
<line num="75" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="76" count="1" type="stmt"/>
<line num="78" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="79" count="1" type="stmt"/>
<line num="81" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="82" count="1" type="stmt"/>
<line num="84" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="85" count="1" type="stmt"/>
<line num="87" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="88" count="1" type="stmt"/>
<line num="89" count="1" type="stmt"/>
<line num="92" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="93" count="1" type="stmt"/>
<line num="95" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="96" count="1" type="stmt"/>
<line num="98" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="99" count="1" type="stmt"/>
<line num="100" count="2" type="stmt"/>
<line num="103" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="104" count="1" type="stmt"/>
<line num="105" count="2" type="stmt"/>
<line num="108" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="109" count="1" type="stmt"/>
<line num="111" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="112" count="1" type="stmt"/>
<line num="114" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="115" count="1" type="stmt"/>
<line num="116" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="120" count="0" type="stmt"/>
<line num="122" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="123" count="1" type="stmt"/>
<line num="124" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="127" count="0" type="stmt"/>
<line num="129" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="130" count="1" type="stmt"/>
<line num="132" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="133" count="1" type="stmt"/>
<line num="135" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="136" count="1" type="stmt"/>
<line num="138" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="139" count="1" type="stmt"/>
<line num="141" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="142" count="1" type="stmt"/>
<line num="144" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="145" count="1" type="stmt"/>
<line num="147" count="2" type="cond" truecount="2" falsecount="0"/>
<line num="148" count="1" type="stmt"/>
<line num="151" count="2" type="stmt"/>
<line num="154" count="1" type="stmt"/>
</file>
</package>
</project>
</coverage>
File diff suppressed because one or more lines are too long
+220
View File
@@ -0,0 +1,220 @@
TN:
SF:demo/calculator/calculator.ts
FN:1,(anonymous_0)
FN:3,(anonymous_2)
FN:7,(anonymous_3)
FNF:3
FNH:3
FNDA:3,(anonymous_0)
FNDA:1,(anonymous_2)
FNDA:1,(anonymous_3)
DA:1,1
DA:3,1
DA:4,1
DA:7,1
DA:8,1
DA:10,1
LF:6
LH:6
BRF:0
BRH:0
end_of_record
TN:
SF:demo/coverage-test/coverage.ts
FN:1,(anonymous_0)
FN:4,(anonymous_2)
FN:13,(anonymous_3)
FN:18,(anonymous_4)
FNF:4
FNH:3
FNDA:3,(anonymous_0)
FNDA:1,(anonymous_2)
FNDA:1,(anonymous_3)
FNDA:0,(anonymous_4)
DA:1,1
DA:4,2
DA:5,1
DA:6,1
DA:8,0
DA:13,2
DA:14,1
DA:18,2
DA:19,0
DA:21,1
LF:10
LH:8
BRDA:4,0,0,1
BRDA:4,0,1,0
BRDA:5,1,0,1
BRDA:5,1,1,0
BRF:4
BRH:2
end_of_record
TN:
SF:src/buildExec.ts
FN:9,(anonymous_6)
FN:20,(anonymous_7)
FN:88,(anonymous_8)
FN:99,(anonymous_9)
FN:104,(anonymous_10)
FNF:5
FNH:5
FNDA:6,(anonymous_6)
FNDA:2,(anonymous_7)
FNDA:1,(anonymous_8)
FNDA:2,(anonymous_9)
FNDA:2,(anonymous_10)
DA:1,1
DA:2,1
DA:5,1
DA:7,1
DA:9,1
DA:10,6
DA:11,6
DA:20,1
DA:21,2
DA:22,2
DA:23,2
DA:24,2
DA:25,2
DA:26,2
DA:27,2
DA:28,2
DA:29,2
DA:30,2
DA:31,2
DA:32,2
DA:33,2
DA:34,2
DA:35,2
DA:36,2
DA:37,2
DA:38,2
DA:39,2
DA:40,2
DA:41,2
DA:42,2
DA:43,2
DA:45,2
DA:46,2
DA:53,2
DA:54,2
DA:63,2
DA:64,3
DA:65,3
DA:66,3
DA:67,2
DA:68,2
DA:72,2
DA:73,1
DA:75,2
DA:76,1
DA:78,2
DA:79,1
DA:81,2
DA:82,1
DA:84,2
DA:85,1
DA:87,2
DA:88,1
DA:89,1
DA:92,2
DA:93,1
DA:95,2
DA:96,1
DA:98,2
DA:99,1
DA:100,2
DA:103,2
DA:104,1
DA:105,2
DA:108,2
DA:109,1
DA:111,2
DA:112,1
DA:114,2
DA:115,1
DA:116,1
DA:120,0
DA:122,2
DA:123,1
DA:124,1
DA:127,0
DA:129,2
DA:130,1
DA:132,2
DA:133,1
DA:135,2
DA:136,1
DA:138,2
DA:139,1
DA:141,2
DA:142,1
DA:144,2
DA:145,1
DA:147,2
DA:148,1
DA:151,2
DA:154,1
LF:92
LH:90
BRDA:12,0,0,6
BRDA:12,0,1,6
BRDA:12,0,2,5
BRDA:12,0,3,3
BRDA:12,0,4,3
BRDA:60,1,0,2
BRDA:60,1,1,2
BRDA:66,2,0,2
BRDA:66,2,1,1
BRDA:72,3,0,1
BRDA:72,3,1,1
BRDA:75,4,0,1
BRDA:75,4,1,1
BRDA:78,5,0,1
BRDA:78,5,1,1
BRDA:81,6,0,1
BRDA:81,6,1,1
BRDA:84,7,0,1
BRDA:84,7,1,1
BRDA:87,8,0,1
BRDA:87,8,1,1
BRDA:92,9,0,1
BRDA:92,9,1,1
BRDA:95,10,0,1
BRDA:95,10,1,1
BRDA:98,11,0,1
BRDA:98,11,1,1
BRDA:103,12,0,1
BRDA:103,12,1,1
BRDA:108,13,0,1
BRDA:108,13,1,1
BRDA:111,14,0,1
BRDA:111,14,1,1
BRDA:114,15,0,1
BRDA:114,15,1,1
BRDA:116,16,0,0
BRDA:116,16,1,1
BRDA:117,17,0,1
BRDA:117,17,1,1
BRDA:122,18,0,1
BRDA:122,18,1,1
BRDA:124,19,0,0
BRDA:124,19,1,1
BRDA:129,20,0,1
BRDA:129,20,1,1
BRDA:132,21,0,1
BRDA:132,21,1,1
BRDA:135,22,0,1
BRDA:135,22,1,1
BRDA:138,23,0,1
BRDA:138,23,1,1
BRDA:141,24,0,1
BRDA:141,24,1,1
BRDA:144,25,0,1
BRDA:144,25,1,1
BRDA:147,26,0,1
BRDA:147,26,1,1
BRF:57
BRH:55
end_of_record
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1626217237139" clover="3.2.0">
<project timestamp="1626217237139" name="All files">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3" elements="9" coveredelements="9" complexity="0" loc="6" ncloc="6" packages="1" files="1" classes="1"/>
<file name="calculator.ts" path="/Users/thomashu/src/github/codecov/codecov-action/demo/calculator/calculator.ts">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
<line num="1" count="1" type="stmt"/>
<line num="3" count="1" type="stmt"/>
<line num="4" count="1" type="stmt"/>
<line num="7" count="1" type="stmt"/>
<line num="8" count="1" type="stmt"/>
<line num="10" count="1" type="stmt"/>
</file>
</project>
</coverage>
File diff suppressed because one or more lines are too long
+224
View File
@@ -0,0 +1,224 @@
body, html {
margin:0; padding: 0;
height: 100%;
}
body {
font-family: Helvetica Neue, Helvetica, Arial;
font-size: 14px;
color:#333;
}
.small { font-size: 12px; }
*, *:after, *:before {
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
h1 { font-size: 20px; margin: 0;}
h2 { font-size: 14px; }
pre {
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
margin: 0;
padding: 0;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}
a { color:#0074D9; text-decoration:none; }
a:hover { text-decoration:underline; }
.strong { font-weight: bold; }
.space-top1 { padding: 10px 0 0 0; }
.pad2y { padding: 20px 0; }
.pad1y { padding: 10px 0; }
.pad2x { padding: 0 20px; }
.pad2 { padding: 20px; }
.pad1 { padding: 10px; }
.space-left2 { padding-left:55px; }
.space-right2 { padding-right:20px; }
.center { text-align:center; }
.clearfix { display:block; }
.clearfix:after {
content:'';
display:block;
height:0;
clear:both;
visibility:hidden;
}
.fl { float: left; }
@media only screen and (max-width:640px) {
.col3 { width:100%; max-width:100%; }
.hide-mobile { display:none!important; }
}
.quiet {
color: #7f7f7f;
color: rgba(0,0,0,0.5);
}
.quiet a { opacity: 0.7; }
.fraction {
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 10px;
color: #555;
background: #E8E8E8;
padding: 4px 5px;
border-radius: 3px;
vertical-align: middle;
}
div.path a:link, div.path a:visited { color: #333; }
table.coverage {
border-collapse: collapse;
margin: 10px 0 0 0;
padding: 0;
}
table.coverage td {
margin: 0;
padding: 0;
vertical-align: top;
}
table.coverage td.line-count {
text-align: right;
padding: 0 5px 0 20px;
}
table.coverage td.line-coverage {
text-align: right;
padding-right: 10px;
min-width:20px;
}
table.coverage td span.cline-any {
display: inline-block;
padding: 0 5px;
width: 100%;
}
.missing-if-branch {
display: inline-block;
margin-right: 5px;
border-radius: 3px;
position: relative;
padding: 0 4px;
background: #333;
color: yellow;
}
.skip-if-branch {
display: none;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: #ccc;
color: white;
}
.missing-if-branch .typ, .skip-if-branch .typ {
color: inherit !important;
}
.coverage-summary {
border-collapse: collapse;
width: 100%;
}
.coverage-summary tr { border-bottom: 1px solid #bbb; }
.keyline-all { border: 1px solid #ddd; }
.coverage-summary td, .coverage-summary th { padding: 10px; }
.coverage-summary tbody { border: 1px solid #bbb; }
.coverage-summary td { border-right: 1px solid #bbb; }
.coverage-summary td:last-child { border-right: none; }
.coverage-summary th {
text-align: left;
font-weight: normal;
white-space: nowrap;
}
.coverage-summary th.file { border-right: none !important; }
.coverage-summary th.pct { }
.coverage-summary th.pic,
.coverage-summary th.abs,
.coverage-summary td.pct,
.coverage-summary td.abs { text-align: right; }
.coverage-summary td.file { white-space: nowrap; }
.coverage-summary td.pic { min-width: 120px !important; }
.coverage-summary tfoot td { }
.coverage-summary .sorter {
height: 10px;
width: 7px;
display: inline-block;
margin-left: 0.5em;
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
}
.coverage-summary .sorted .sorter {
background-position: 0 -20px;
}
.coverage-summary .sorted-desc .sorter {
background-position: 0 -10px;
}
.status-line { height: 10px; }
/* yellow */
.cbranch-no { background: yellow !important; color: #111; }
/* dark red */
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
.low .chart { border:1px solid #C21F39 }
.highlighted,
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
background: #C21F39 !important;
}
/* medium red */
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
/* light red */
.low, .cline-no { background:#FCE1E5 }
/* light green */
.high, .cline-yes { background:rgb(230,245,208) }
/* medium green */
.cstat-yes { background:rgb(161,215,106) }
/* dark green */
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
.high .chart { border:1px solid rgb(77,146,33) }
/* dark yellow (gold) */
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
.medium .chart { border:1px solid #f9cd0b; }
/* light yellow */
.medium { background: #fff4c2; }
.cstat-skip { background: #ddd; color: #111; }
.fstat-skip { background: #ddd; color: #111 !important; }
.cbranch-skip { background: #ddd !important; color: #111; }
span.cline-neutral { background: #eaeaea; }
.coverage-summary td.empty {
opacity: .5;
padding-top: 4px;
padding-bottom: 4px;
line-height: 1;
color: #888;
}
.cover-fill, .cover-empty {
display:inline-block;
height: 12px;
}
.chart {
line-height: 0;
}
.cover-empty {
background: white;
}
.cover-full {
border-right: none !important;
}
pre.prettyprint {
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
.com { color: #999 !important; }
.ignore-none { color: #999; font-weight: normal; }
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -48px;
}
.footer, .push {
height: 48px;
}
@@ -0,0 +1,88 @@
/******/ (() => { // webpackBootstrap
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/
var __webpack_exports__ = {};
/* eslint-disable */
var jumpToCode = (function init() {
// Classes of code we would like to highlight in the file view
var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
// Elements to highlight in the file listing view
var fileListingElements = ['td.pct.low'];
// We don't want to select elements that are direct descendants of another match
var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
// Selecter that finds elements on the page to which we can jump
var selector =
fileListingElements.join(', ') +
', ' +
notSelector +
missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
// The NodeList of matching elements
var missingCoverageElements = document.querySelectorAll(selector);
var currentIndex;
function toggleClass(index) {
missingCoverageElements
.item(currentIndex)
.classList.remove('highlighted');
missingCoverageElements.item(index).classList.add('highlighted');
}
function makeCurrent(index) {
toggleClass(index);
currentIndex = index;
missingCoverageElements.item(index).scrollIntoView({
behavior: 'smooth',
block: 'center',
inline: 'center'
});
}
function goToPrevious() {
var nextIndex = 0;
if (typeof currentIndex !== 'number' || currentIndex === 0) {
nextIndex = missingCoverageElements.length - 1;
} else if (missingCoverageElements.length > 1) {
nextIndex = currentIndex - 1;
}
makeCurrent(nextIndex);
}
function goToNext() {
var nextIndex = 0;
if (
typeof currentIndex === 'number' &&
currentIndex < missingCoverageElements.length - 1
) {
nextIndex = currentIndex + 1;
}
makeCurrent(nextIndex);
}
return function jump(event) {
switch (event.which) {
case 78: // n
case 74: // j
goToNext();
break;
case 66: // b
case 75: // k
case 80: // p
goToPrevious();
break;
}
};
})();
window.addEventListener('keydown', jumpToCode);
module.exports = __webpack_exports__;
/******/ })()
;
+110
View File
@@ -0,0 +1,110 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for calculator.ts</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="prettify.css" />
<link rel="stylesheet" href="base.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1><a href="index.html">All files</a> calculator.ts</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>6/6</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>0/0</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>3/3</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>6/6</span>
</div>
</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
</div>
<div class='status-line high'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a>
<a name='L2'></a><a href='#L2'>2</a>
<a name='L3'></a><a href='#L3'>3</a>
<a name='L4'></a><a href='#L4'>4</a>
<a name='L5'></a><a href='#L5'>5</a>
<a name='L6'></a><a href='#L6'>6</a>
<a name='L7'></a><a href='#L7'>7</a>
<a name='L8'></a><a href='#L8'>8</a>
<a name='L9'></a><a href='#L9'>9</a>
<a name='L10'></a><a href='#L10'>10</a>
<a name='L11'></a><a href='#L11'>11</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-yes">1x</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">export default class Calculator {
&nbsp;
add(x : number, y : number) : number {
return x + y;
}
&nbsp;
subtract(x: number, y: number) : number {
return x - y;
}
}
&nbsp;</pre></td></tr></table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Tue Jul 13 2021 16:00:37 GMT-0700 (Pacific Daylight Time)
</div>
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
prettyPrint();
};
</script>
<script src="sorter.js"></script>
<script src="block-navigation.js"></script>
</body>
</html>
Binary file not shown.

After

Width:  |  Height:  |  Size: 540 B

+111
View File
@@ -0,0 +1,111 @@
<!doctype html>
<html lang="en">
<head>
<title>Code coverage report for All files</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="prettify.css" />
<link rel="stylesheet" href="base.css" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<style type='text/css'>
.coverage-summary .sorter {
background-image: url(sort-arrow-sprite.png);
}
</style>
</head>
<body>
<div class='wrapper'>
<div class='pad1'>
<h1>All files</h1>
<div class='clearfix'>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Statements</span>
<span class='fraction'>6/6</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Branches</span>
<span class='fraction'>0/0</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Functions</span>
<span class='fraction'>3/3</span>
</div>
<div class='fl pad1y space-right2'>
<span class="strong">100% </span>
<span class="quiet">Lines</span>
<span class='fraction'>6/6</span>
</div>
</div>
<p class="quiet">
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
</p>
</div>
<div class='status-line high'></div>
<div class="pad1">
<table class="coverage-summary">
<thead>
<tr>
<th data-col="file" data-fmt="html" data-html="true" class="file">File</th>
<th data-col="pic" data-type="number" data-fmt="html" data-html="true" class="pic"></th>
<th data-col="statements" data-type="number" data-fmt="pct" class="pct">Statements</th>
<th data-col="statements_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="branches" data-type="number" data-fmt="pct" class="pct">Branches</th>
<th data-col="branches_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="functions" data-type="number" data-fmt="pct" class="pct">Functions</th>
<th data-col="functions_raw" data-type="number" data-fmt="html" class="abs"></th>
<th data-col="lines" data-type="number" data-fmt="pct" class="pct">Lines</th>
<th data-col="lines_raw" data-type="number" data-fmt="html" class="abs"></th>
</tr>
</thead>
<tbody><tr>
<td class="file high" data-value="calculator.ts"><a href="calculator.ts.html">calculator.ts</a></td>
<td data-value="100" class="pic high">
<div class="chart"><div class="cover-fill cover-full" style="width: 100%"></div><div class="cover-empty" style="width: 0%"></div></div>
</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="6" class="abs high">6/6</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="0" class="abs high">0/0</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="3" class="abs high">3/3</td>
<td data-value="100" class="pct high">100%</td>
<td data-value="6" class="abs high">6/6</td>
</tr>
</tbody>
</table>
</div>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
Code coverage generated by
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
at Tue Jul 13 2021 16:00:37 GMT-0700 (Pacific Daylight Time)
</div>
</div>
<script src="prettify.js"></script>
<script>
window.onload = function () {
prettyPrint();
};
</script>
<script src="sorter.js"></script>
<script src="block-navigation.js"></script>
</body>
</html>
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

+179
View File
@@ -0,0 +1,179 @@
/******/ (() => { // webpackBootstrap
/******/ /* webpack/runtime/compat */
/******/
/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/";/************************************************************************/
var __webpack_exports__ = {};
/* eslint-disable */
var addSorting = (function() {
'use strict';
var cols,
currentSort = {
index: 0,
desc: false
};
// returns the summary table element
function getTable() {
return document.querySelector('.coverage-summary');
}
// returns the thead element of the summary table
function getTableHeader() {
return getTable().querySelector('thead tr');
}
// returns the tbody element of the summary table
function getTableBody() {
return getTable().querySelector('tbody');
}
// returns the th element for nth column
function getNthColumn(n) {
return getTableHeader().querySelectorAll('th')[n];
}
// loads all columns
function loadColumns() {
var colNodes = getTableHeader().querySelectorAll('th'),
colNode,
cols = [],
col,
i;
for (i = 0; i < colNodes.length; i += 1) {
colNode = colNodes[i];
col = {
key: colNode.getAttribute('data-col'),
sortable: !colNode.getAttribute('data-nosort'),
type: colNode.getAttribute('data-type') || 'string'
};
cols.push(col);
if (col.sortable) {
col.defaultDescSort = col.type === 'number';
colNode.innerHTML =
colNode.innerHTML + '<span class="sorter"></span>';
}
}
return cols;
}
// attaches a data attribute to every tr element with an object
// of data values keyed by column name
function loadRowData(tableRow) {
var tableCols = tableRow.querySelectorAll('td'),
colNode,
col,
data = {},
i,
val;
for (i = 0; i < tableCols.length; i += 1) {
colNode = tableCols[i];
col = cols[i];
val = colNode.getAttribute('data-value');
if (col.type === 'number') {
val = Number(val);
}
data[col.key] = val;
}
return data;
}
// loads all row data
function loadData() {
var rows = getTableBody().querySelectorAll('tr'),
i;
for (i = 0; i < rows.length; i += 1) {
rows[i].data = loadRowData(rows[i]);
}
}
// sorts the table using the data for the ith column
function sortByIndex(index, desc) {
var key = cols[index].key,
sorter = function(a, b) {
a = a.data[key];
b = b.data[key];
return a < b ? -1 : a > b ? 1 : 0;
},
finalSorter = sorter,
tableBody = document.querySelector('.coverage-summary tbody'),
rowNodes = tableBody.querySelectorAll('tr'),
rows = [],
i;
if (desc) {
finalSorter = function(a, b) {
return -1 * sorter(a, b);
};
}
for (i = 0; i < rowNodes.length; i += 1) {
rows.push(rowNodes[i]);
tableBody.removeChild(rowNodes[i]);
}
rows.sort(finalSorter);
for (i = 0; i < rows.length; i += 1) {
tableBody.appendChild(rows[i]);
}
}
// removes sort indicators for current column being sorted
function removeSortIndicators() {
var col = getNthColumn(currentSort.index),
cls = col.className;
cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, '');
col.className = cls;
}
// adds sort indicators for current column being sorted
function addSortIndicators() {
getNthColumn(currentSort.index).className += currentSort.desc
? ' sorted-desc'
: ' sorted';
}
// adds event listeners for all sorter widgets
function enableUI() {
var i,
el,
ithSorter = function ithSorter(i) {
var col = cols[i];
return function() {
var desc = col.defaultDescSort;
if (currentSort.index === i) {
desc = !currentSort.desc;
}
sortByIndex(i, desc);
removeSortIndicators();
currentSort.index = i;
currentSort.desc = desc;
addSortIndicators();
};
};
for (i = 0; i < cols.length; i += 1) {
if (cols[i].sortable) {
// add the click event handler on the th so users
// dont have to click on those tiny arrows
el = getNthColumn(i).querySelector('.sorter').parentElement;
if (el.addEventListener) {
el.addEventListener('click', ithSorter(i));
} else {
el.attachEvent('onclick', ithSorter(i));
}
}
}
}
// adds sorting functionality to the UI
return function() {
if (!getTable()) {
return;
}
cols = loadColumns();
loadData();
addSortIndicators();
enableUI();
};
})();
window.addEventListener('load', addSorting);
module.exports = __webpack_exports__;
/******/ })()
;
+21
View File
@@ -0,0 +1,21 @@
TN:
SF:demo/calculator/calculator.ts
FN:1,(anonymous_0)
FN:3,(anonymous_2)
FN:7,(anonymous_3)
FNF:3
FNH:3
FNDA:3,(anonymous_0)
FNDA:1,(anonymous_2)
FNDA:1,(anonymous_3)
DA:1,1
DA:3,1
DA:4,1
DA:7,1
DA:8,1
DA:10,1
LF:6
LH:6
BRF:0
BRH:0
end_of_record
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1626218062386" clover="3.2.0">
<project timestamp="1626218062387" name="All files">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3" elements="9" coveredelements="9" complexity="0" loc="6" ncloc="6" packages="1" files="1" classes="1"/>
<file name="calculator.ts" path="/Users/thomashu/src/github/codecov/codecov-action/demo/calculator/calculator.ts">
<metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
<line num="1" count="1" type="stmt"/>
<line num="3" count="1" type="stmt"/>
<line num="4" count="1" type="stmt"/>
<line num="7" count="1" type="stmt"/>
<line num="8" count="1" type="stmt"/>
<line num="10" count="1" type="stmt"/>
</file>
</project>
</coverage>
File diff suppressed because one or more lines are too long
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1626218064007" clover="3.2.0">
<project timestamp="1626218064007" name="All files">
<metrics statements="10" coveredstatements="8" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="3" elements="18" coveredelements="13" complexity="0" loc="10" ncloc="10" packages="1" files="1" classes="1"/>
<file name="coverage.ts" path="/Users/thomashu/src/github/codecov/codecov-action/demo/coverage-test/coverage.ts">
<metrics statements="10" coveredstatements="8" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="3"/>
<line num="1" count="1" type="stmt"/>
<line num="4" count="2" type="cond" truecount="1" falsecount="1"/>
<line num="5" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="6" count="1" type="stmt"/>
<line num="8" count="0" type="stmt"/>
<line num="13" count="2" type="stmt"/>
<line num="14" count="1" type="stmt"/>
<line num="18" count="2" type="stmt"/>
<line num="19" count="0" type="stmt"/>
<line num="21" count="1" type="stmt"/>
</file>
</project>
</coverage>
File diff suppressed because one or more lines are too long
+224
View File
@@ -0,0 +1,224 @@
body, html {
margin:0; padding: 0;
height: 100%;
}
body {
font-family: Helvetica Neue, Helvetica, Arial;
font-size: 14px;
color:#333;
}
.small { font-size: 12px; }
*, *:after, *:before {
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
h1 { font-size: 20px; margin: 0;}
h2 { font-size: 14px; }
pre {
font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
margin: 0;
padding: 0;
-moz-tab-size: 2;
-o-tab-size: 2;
tab-size: 2;
}
a { color:#0074D9; text-decoration:none; }
a:hover { text-decoration:underline; }
.strong { font-weight: bold; }
.space-top1 { padding: 10px 0 0 0; }
.pad2y { padding: 20px 0; }
.pad1y { padding: 10px 0; }
.pad2x { padding: 0 20px; }
.pad2 { padding: 20px; }
.pad1 { padding: 10px; }
.space-left2 { padding-left:55px; }
.space-right2 { padding-right:20px; }
.center { text-align:center; }
.clearfix { display:block; }
.clearfix:after {
content:'';
display:block;
height:0;
clear:both;
visibility:hidden;
}
.fl { float: left; }
@media only screen and (max-width:640px) {
.col3 { width:100%; max-width:100%; }
.hide-mobile { display:none!important; }
}
.quiet {
color: #7f7f7f;
color: rgba(0,0,0,0.5);
}
.quiet a { opacity: 0.7; }
.fraction {
font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
font-size: 10px;
color: #555;
background: #E8E8E8;
padding: 4px 5px;
border-radius: 3px;
vertical-align: middle;
}
div.path a:link, div.path a:visited { color: #333; }
table.coverage {
border-collapse: collapse;
margin: 10px 0 0 0;
padding: 0;
}
table.coverage td {
margin: 0;
padding: 0;
vertical-align: top;
}
table.coverage td.line-count {
text-align: right;
padding: 0 5px 0 20px;
}
table.coverage td.line-coverage {
text-align: right;
padding-right: 10px;
min-width:20px;
}
table.coverage td span.cline-any {
display: inline-block;
padding: 0 5px;
width: 100%;
}
.missing-if-branch {
display: inline-block;
margin-right: 5px;
border-radius: 3px;
position: relative;
padding: 0 4px;
background: #333;
color: yellow;
}
.skip-if-branch {
display: none;
margin-right: 10px;
position: relative;
padding: 0 4px;
background: #ccc;
color: white;
}
.missing-if-branch .typ, .skip-if-branch .typ {
color: inherit !important;
}
.coverage-summary {
border-collapse: collapse;
width: 100%;
}
.coverage-summary tr { border-bottom: 1px solid #bbb; }
.keyline-all { border: 1px solid #ddd; }
.coverage-summary td, .coverage-summary th { padding: 10px; }
.coverage-summary tbody { border: 1px solid #bbb; }
.coverage-summary td { border-right: 1px solid #bbb; }
.coverage-summary td:last-child { border-right: none; }
.coverage-summary th {
text-align: left;
font-weight: normal;
white-space: nowrap;
}
.coverage-summary th.file { border-right: none !important; }
.coverage-summary th.pct { }
.coverage-summary th.pic,
.coverage-summary th.abs,
.coverage-summary td.pct,
.coverage-summary td.abs { text-align: right; }
.coverage-summary td.file { white-space: nowrap; }
.coverage-summary td.pic { min-width: 120px !important; }
.coverage-summary tfoot td { }
.coverage-summary .sorter {
height: 10px;
width: 7px;
display: inline-block;
margin-left: 0.5em;
background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
}
.coverage-summary .sorted .sorter {
background-position: 0 -20px;
}
.coverage-summary .sorted-desc .sorter {
background-position: 0 -10px;
}
.status-line { height: 10px; }
/* yellow */
.cbranch-no { background: yellow !important; color: #111; }
/* dark red */
.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
.low .chart { border:1px solid #C21F39 }
.highlighted,
.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
background: #C21F39 !important;
}
/* medium red */
.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
/* light red */
.low, .cline-no { background:#FCE1E5 }
/* light green */
.high, .cline-yes { background:rgb(230,245,208) }
/* medium green */
.cstat-yes { background:rgb(161,215,106) }
/* dark green */
.status-line.high, .high .cover-fill { background:rgb(77,146,33) }
.high .chart { border:1px solid rgb(77,146,33) }
/* dark yellow (gold) */
.status-line.medium, .medium .cover-fill { background: #f9cd0b; }
.medium .chart { border:1px solid #f9cd0b; }
/* light yellow */
.medium { background: #fff4c2; }
.cstat-skip { background: #ddd; color: #111; }
.fstat-skip { background: #ddd; color: #111 !important; }
.cbranch-skip { background: #ddd !important; color: #111; }
span.cline-neutral { background: #eaeaea; }
.coverage-summary td.empty {
opacity: .5;
padding-top: 4px;
padding-bottom: 4px;
line-height: 1;
color: #888;
}
.cover-fill, .cover-empty {
display:inline-block;
height: 12px;
}
.chart {
line-height: 0;
}
.cover-empty {
background: white;
}
.cover-full {
border-right: none !important;
}
pre.prettyprint {
border: none !important;
padding: 0 !important;
margin: 0 !important;
}
.com { color: #999 !important; }
.ignore-none { color: #999; font-weight: normal; }
.wrapper {
min-height: 100%;
height: auto !important;
height: 100%;
margin: 0 auto -48px;
}
.footer, .push {
height: 48px;
}

Some files were not shown because too many files have changed in this diff Show More