Skip to content

Commit

Permalink
fix: Add job to test no deps
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu committed Jul 19, 2021
1 parent ad2b003 commit 71fa76a
Show file tree
Hide file tree
Showing 70 changed files with 5,124 additions and 4 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
15 changes: 15 additions & 0 deletions coverage/calculator/clover.xml
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 2 additions & 0 deletions coverage/calculator/coverage-final.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"/Users/thomashu/src/github/codecov/codecov-action/demo/calculator/calculator.ts": {"path":"/Users/thomashu/src/github/codecov/codecov-action/demo/calculator/calculator.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":3,"column":2},"end":{"line":5,"column":null}},"2":{"start":{"line":4,"column":4},"end":{"line":4,"column":17}},"3":{"start":{"line":7,"column":2},"end":{"line":9,"column":null}},"4":{"start":{"line":8,"column":4},"end":{"line":8,"column":17}},"5":{"start":{"line":10,"column":0},"end":{"line":10,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":10,"column":null}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":2},"end":{"line":3,"column":5}},"loc":{"start":{"line":3,"column":28},"end":{"line":5,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":7,"column":2},"end":{"line":7,"column":10}},"loc":{"start":{"line":7,"column":31},"end":{"line":9,"column":3}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1},"f":{"0":3,"1":1,"2":1},"b":{}}
}
21 changes: 21 additions & 0 deletions coverage/calculator/lcov.info
Original file line number Diff line number Diff line change
@@ -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 changes: 15 additions & 0 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 2 additions & 0 deletions coverage/coverage-final.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"/Users/thomashu/src/github/codecov/codecov-action/demo/calculator/calculator.ts": {"path":"/Users/thomashu/src/github/codecov/codecov-action/demo/calculator/calculator.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":3,"column":2},"end":{"line":5,"column":null}},"2":{"start":{"line":4,"column":4},"end":{"line":4,"column":17}},"3":{"start":{"line":7,"column":2},"end":{"line":9,"column":null}},"4":{"start":{"line":8,"column":4},"end":{"line":8,"column":17}},"5":{"start":{"line":10,"column":0},"end":{"line":10,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":10,"column":null}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":3,"column":2},"end":{"line":3,"column":5}},"loc":{"start":{"line":3,"column":28},"end":{"line":5,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":7,"column":2},"end":{"line":7,"column":10}},"loc":{"start":{"line":7,"column":31},"end":{"line":9,"column":3}}}},"branchMap":{},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1},"f":{"0":3,"1":1,"2":1},"b":{}}
}
19 changes: 19 additions & 0 deletions coverage/coverage-test/clover.xml
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 2 additions & 0 deletions coverage/coverage-test/coverage-final.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{"/Users/thomashu/src/github/codecov/codecov-action/demo/coverage-test/coverage.ts": {"path":"/Users/thomashu/src/github/codecov/codecov-action/demo/coverage-test/coverage.ts","statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"1":{"start":{"line":4,"column":2},"end":{"line":10,"column":null}},"2":{"start":{"line":4,"column":18},"end":{"line":4,"column":null}},"3":{"start":{"line":5,"column":4},"end":{"line":9,"column":null}},"4":{"start":{"line":6,"column":6},"end":{"line":6,"column":null}},"5":{"start":{"line":8,"column":6},"end":{"line":8,"column":null}},"6":{"start":{"line":13,"column":2},"end":{"line":15,"column":null}},"7":{"start":{"line":14,"column":4},"end":{"line":14,"column":null}},"8":{"start":{"line":18,"column":2},"end":{"line":20,"column":null}},"9":{"start":{"line":19,"column":4},"end":{"line":19,"column":null}},"10":{"start":{"line":21,"column":0},"end":{"line":21,"column":null}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":1,"column":0},"end":{"line":1,"column":null}},"loc":{"start":{"line":1,"column":0},"end":{"line":21,"column":null}}},"1":{"name":"(anonymous_2)","decl":{"start":{"line":4,"column":17},"end":{"line":4,"column":18}},"loc":{"start":{"line":4,"column":26},"end":{"line":10,"column":3}}},"2":{"name":"(anonymous_3)","decl":{"start":{"line":13,"column":18},"end":{"line":13,"column":null}},"loc":{"start":{"line":13,"column":18},"end":{"line":15,"column":3}}},"3":{"name":"(anonymous_4)","decl":{"start":{"line":18,"column":14},"end":{"line":18,"column":null}},"loc":{"start":{"line":18,"column":14},"end":{"line":20,"column":3}}}},"branchMap":{"0":{"loc":{"start":{"line":4,"column":18},"end":{"line":4,"column":null}},"type":"if","locations":[{"start":{"line":4,"column":18},"end":{"line":4,"column":null}},{"start":{"line":4,"column":18},"end":{"line":4,"column":null}}]},"1":{"loc":{"start":{"line":5,"column":4},"end":{"line":9,"column":null}},"type":"if","locations":[{"start":{"line":5,"column":4},"end":{"line":9,"column":null}},{"start":{"line":5,"column":4},"end":{"line":9,"column":null}}]}},"s":{"0":1,"1":2,"2":2,"3":1,"4":1,"5":0,"6":2,"7":1,"8":2,"9":0,"10":1},"f":{"0":3,"1":1,"2":1,"3":0},"b":{"0":[1,0],"1":[1,0]}}
}
31 changes: 31 additions & 0 deletions coverage/coverage-test/lcov.info
Original file line number Diff line number Diff line change
@@ -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 changes: 21 additions & 0 deletions coverage/lcov.info
Original file line number Diff line number Diff line change
@@ -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 changes: 132 additions & 0 deletions coverage/script/clover.xml
Original file line number Diff line number Diff line change
@@ -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>
Loading

0 comments on commit 71fa76a

Please sign in to comment.