Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

Commit

Permalink
feat: add test and release action
Browse files Browse the repository at this point in the history
  • Loading branch information
savinienrichter committed Mar 24, 2020
1 parent b76416e commit 6a4af97
Show file tree
Hide file tree
Showing 15 changed files with 5,182 additions and 177 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,17 @@ jobs:
- name: "Build & tests"
run: |
yarn build
yarn ci-validate
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: "Release"
run: |
yarn gh-actions-bridge-semantic-release
env:
SEMVER_RELEASE_TYPE: LIBRARY_NODE
ACTION_GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.CI_GH_TOKEN }}
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
always_job:
name: Aways run job
Expand Down
84 changes: 84 additions & 0 deletions coverage/clover.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
<?xml version="1.0" encoding="UTF-8"?>
<coverage generated="1585044926090" clover="3.2.0">
<project timestamp="1585044926090" name="All files">
<metrics statements="68" coveredstatements="33" conditionals="24" coveredconditionals="8" methods="19" coveredmethods="7" elements="111" coveredelements="48" complexity="0" loc="68" ncloc="68" packages="1" files="3" classes="3">
<file name="dom.js" path="/Users/srichter/workspace/batMap/src/utils/dom.js">
<metrics statements="54" coveredstatements="29" conditionals="20" coveredconditionals="8" methods="13" coveredmethods="5"/>
<line num="3" count="1" type="stmt"/>
<line num="4" count="1" type="stmt"/>
<line num="5" count="1" type="stmt"/>
<line num="7" count="1" type="stmt"/>
<line num="9" count="0" type="stmt"/>
<line num="13" count="0" type="stmt"/>
<line num="17" count="0" type="stmt"/>
<line num="19" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="20" count="0" type="stmt"/>
<line num="23" count="0" type="stmt"/>
<line num="24" count="0" type="stmt"/>
<line num="25" count="0" type="stmt"/>
<line num="27" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="28" count="0" type="stmt"/>
<line num="32" count="0" type="stmt"/>
<line num="37" count="0" type="stmt"/>
<line num="38" count="0" type="stmt"/>
<line num="39" count="0" type="stmt"/>
<line num="40" count="0" type="stmt"/>
<line num="42" count="0" type="stmt"/>
<line num="46" count="0" type="stmt"/>
<line num="47" count="0" type="stmt"/>
<line num="48" count="0" type="stmt"/>
<line num="50" count="0" type="stmt"/>
<line num="54" count="0" type="cond" truecount="0" falsecount="5"/>
<line num="58" count="7" type="stmt"/>
<line num="59" count="7" type="stmt"/>
<line num="60" count="7" type="cond" truecount="3" falsecount="0"/>
<line num="61" count="7" type="stmt"/>
<line num="62" count="7" type="cond" truecount="2" falsecount="0"/>
<line num="63" count="6" type="stmt"/>
<line num="65" count="7" type="stmt"/>
<line num="70" count="1" type="stmt"/>
<line num="71" count="1" type="stmt"/>
<line num="72" count="1" type="stmt"/>
<line num="73" count="1" type="stmt"/>
<line num="74" count="1" type="stmt"/>
<line num="78" count="1" type="stmt"/>
<line num="79" count="1" type="stmt"/>
<line num="84" count="2" type="cond" truecount="1" falsecount="1"/>
<line num="85" count="2" type="stmt"/>
<line num="86" count="2" type="stmt"/>
<line num="87" count="2" type="cond" truecount="1" falsecount="1"/>
<line num="89" count="0" type="stmt"/>
<line num="94" count="1" type="stmt"/>
<line num="95" count="1" type="stmt"/>
<line num="96" count="1" type="cond" truecount="1" falsecount="1"/>
<line num="97" count="0" type="stmt"/>
<line num="99" count="1" type="stmt"/>
<line num="100" count="1" type="stmt"/>
<line num="101" count="1" type="stmt"/>
<line num="102" count="1" type="stmt"/>
<line num="104" count="0" type="stmt"/>
<line num="105" count="0" type="stmt"/>
</file>
<file name="ie.js" path="/Users/srichter/workspace/batMap/src/utils/ie.js">
<metrics statements="11" coveredstatements="1" conditionals="4" coveredconditionals="0" methods="4" coveredmethods="0"/>
<line num="3" count="1" type="stmt"/>
<line num="5" count="0" type="stmt"/>
<line num="6" count="0" type="stmt"/>
<line num="8" count="0" type="stmt"/>
<line num="12" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="13" count="0" type="stmt"/>
<line num="15" count="0" type="stmt"/>
<line num="19" count="0" type="stmt"/>
<line num="20" count="0" type="cond" truecount="0" falsecount="2"/>
<line num="21" count="0" type="stmt"/>
<line num="24" count="0" type="stmt"/>
</file>
<file name="type.js" path="/Users/srichter/workspace/batMap/src/utils/type.js">
<metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
<line num="4" count="4" type="stmt"/>
<line num="8" count="3" type="stmt"/>
<line num="11" count="2" type="stmt"/>
</file>
</metrics>
</project>
</coverage>
4 changes: 4 additions & 0 deletions coverage/coverage-final.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{"/Users/srichter/workspace/batMap/src/utils/dom.js": {"path":"/Users/srichter/workspace/batMap/src/utils/dom.js","statementMap":{"0":{"start":{"line":3,"column":14},"end":{"line":3,"column":29}},"1":{"start":{"line":4,"column":16},"end":{"line":4,"column":43}},"2":{"start":{"line":5,"column":16},"end":{"line":5,"column":56}},"3":{"start":{"line":7,"column":0},"end":{"line":81,"column":2}},"4":{"start":{"line":9,"column":8},"end":{"line":9,"column":55}},"5":{"start":{"line":13,"column":8},"end":{"line":13,"column":55}},"6":{"start":{"line":17,"column":23},"end":{"line":17,"column":24}},"7":{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},"8":{"start":{"line":20,"column":12},"end":{"line":20,"column":23}},"9":{"start":{"line":23,"column":8},"end":{"line":33,"column":11}},"10":{"start":{"line":24,"column":12},"end":{"line":30,"column":15}},"11":{"start":{"line":25,"column":16},"end":{"line":25,"column":27}},"12":{"start":{"line":27,"column":16},"end":{"line":29,"column":17}},"13":{"start":{"line":28,"column":20},"end":{"line":28,"column":31}},"14":{"start":{"line":32,"column":12},"end":{"line":32,"column":45}},"15":{"start":{"line":37,"column":21},"end":{"line":37,"column":53}},"16":{"start":{"line":38,"column":8},"end":{"line":38,"column":40}},"17":{"start":{"line":39,"column":8},"end":{"line":39,"column":25}},"18":{"start":{"line":40,"column":8},"end":{"line":40,"column":28}},"19":{"start":{"line":42,"column":8},"end":{"line":42,"column":22}},"20":{"start":{"line":46,"column":20},"end":{"line":46,"column":50}},"21":{"start":{"line":47,"column":8},"end":{"line":47,"column":33}},"22":{"start":{"line":48,"column":8},"end":{"line":48,"column":26}},"23":{"start":{"line":50,"column":8},"end":{"line":50,"column":21}},"24":{"start":{"line":54,"column":8},"end":{"line":54,"column":120}},"25":{"start":{"line":58,"column":18},"end":{"line":58,"column":47}},"26":{"start":{"line":59,"column":8},"end":{"line":59,"column":28}},"27":{"start":{"line":60,"column":26},"end":{"line":60,"column":64}},"28":{"start":{"line":61,"column":22},"end":{"line":61,"column":24}},"29":{"start":{"line":62,"column":8},"end":{"line":64,"column":9}},"30":{"start":{"line":63,"column":12},"end":{"line":63,"column":47}},"31":{"start":{"line":65,"column":8},"end":{"line":65,"column":60}},"32":{"start":{"line":70,"column":20},"end":{"line":70,"column":49}},"33":{"start":{"line":71,"column":8},"end":{"line":71,"column":33}},"34":{"start":{"line":72,"column":8},"end":{"line":72,"column":39}},"35":{"start":{"line":73,"column":20},"end":{"line":73,"column":48}},"36":{"start":{"line":74,"column":21},"end":{"line":77,"column":9}},"37":{"start":{"line":78,"column":8},"end":{"line":78,"column":39}},"38":{"start":{"line":79,"column":8},"end":{"line":79,"column":22}},"39":{"start":{"line":84,"column":4},"end":{"line":90,"column":5}},"40":{"start":{"line":85,"column":24},"end":{"line":85,"column":62}},"41":{"start":{"line":86,"column":25},"end":{"line":86,"column":42}},"42":{"start":{"line":87,"column":8},"end":{"line":87,"column":49}},"43":{"start":{"line":89,"column":8},"end":{"line":89,"column":17}},"44":{"start":{"line":94,"column":18},"end":{"line":94,"column":20}},"45":{"start":{"line":95,"column":4},"end":{"line":108,"column":6}},"46":{"start":{"line":96,"column":8},"end":{"line":107,"column":9}},"47":{"start":{"line":97,"column":12},"end":{"line":97,"column":30}},"48":{"start":{"line":99,"column":12},"end":{"line":106,"column":13}},"49":{"start":{"line":100,"column":29},"end":{"line":100,"column":38}},"50":{"start":{"line":101,"column":16},"end":{"line":101,"column":36}},"51":{"start":{"line":102,"column":16},"end":{"line":102,"column":30}},"52":{"start":{"line":104,"column":16},"end":{"line":104,"column":31}},"53":{"start":{"line":105,"column":16},"end":{"line":105,"column":28}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":8,"column":15},"end":{"line":8,"column":16}},"loc":{"start":{"line":8,"column":42},"end":{"line":10,"column":5}},"line":8},"1":{"name":"(anonymous_1)","decl":{"start":{"line":12,"column":14},"end":{"line":12,"column":15}},"loc":{"start":{"line":12,"column":42},"end":{"line":14,"column":5}},"line":12},"2":{"name":"(anonymous_2)","decl":{"start":{"line":16,"column":18},"end":{"line":16,"column":19}},"loc":{"start":{"line":16,"column":61},"end":{"line":34,"column":5}},"line":16},"3":{"name":"(anonymous_3)","decl":{"start":{"line":23,"column":26},"end":{"line":23,"column":27}},"loc":{"start":{"line":23,"column":40},"end":{"line":33,"column":9}},"line":23},"4":{"name":"(anonymous_4)","decl":{"start":{"line":24,"column":46},"end":{"line":24,"column":47}},"loc":{"start":{"line":24,"column":52},"end":{"line":30,"column":13}},"line":24},"5":{"name":"(anonymous_5)","decl":{"start":{"line":36,"column":18},"end":{"line":36,"column":19}},"loc":{"start":{"line":36,"column":33},"end":{"line":43,"column":5}},"line":36},"6":{"name":"(anonymous_6)","decl":{"start":{"line":45,"column":17},"end":{"line":45,"column":18}},"loc":{"start":{"line":45,"column":33},"end":{"line":51,"column":5}},"line":45},"7":{"name":"(anonymous_7)","decl":{"start":{"line":53,"column":19},"end":{"line":53,"column":20}},"loc":{"start":{"line":53,"column":34},"end":{"line":55,"column":5}},"line":53},"8":{"name":"(anonymous_8)","decl":{"start":{"line":57,"column":30},"end":{"line":57,"column":31}},"loc":{"start":{"line":57,"column":45},"end":{"line":66,"column":5}},"line":57},"9":{"name":"(anonymous_9)","decl":{"start":{"line":69,"column":29},"end":{"line":69,"column":30}},"loc":{"start":{"line":69,"column":43},"end":{"line":80,"column":5}},"line":69},"10":{"name":"extractPx","decl":{"start":{"line":83,"column":9},"end":{"line":83,"column":18}},"loc":{"start":{"line":83,"column":24},"end":{"line":91,"column":1}},"line":83},"11":{"name":"memoize","decl":{"start":{"line":93,"column":9},"end":{"line":93,"column":16}},"loc":{"start":{"line":93,"column":23},"end":{"line":109,"column":1}},"line":93},"12":{"name":"(anonymous_12)","decl":{"start":{"line":95,"column":11},"end":{"line":95,"column":12}},"loc":{"start":{"line":95,"column":20},"end":{"line":108,"column":5}},"line":95}},"branchMap":{"0":{"loc":{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},"type":"if","locations":[{"start":{"line":19,"column":8},"end":{"line":21,"column":9}},{"start":{"line":19,"column":8},"end":{"line":21,"column":9}}],"line":19},"1":{"loc":{"start":{"line":27,"column":16},"end":{"line":29,"column":17}},"type":"if","locations":[{"start":{"line":27,"column":16},"end":{"line":29,"column":17}},{"start":{"line":27,"column":16},"end":{"line":29,"column":17}}],"line":27},"2":{"loc":{"start":{"line":54,"column":15},"end":{"line":54,"column":119}},"type":"binary-expr","locations":[{"start":{"line":54,"column":15},"end":{"line":54,"column":18}},{"start":{"line":54,"column":22},"end":{"line":54,"column":45}},{"start":{"line":54,"column":49},"end":{"line":54,"column":61}},{"start":{"line":54,"column":65},"end":{"line":54,"column":83}},{"start":{"line":54,"column":87},"end":{"line":54,"column":119}}],"line":54},"3":{"loc":{"start":{"line":60,"column":26},"end":{"line":60,"column":64}},"type":"binary-expr","locations":[{"start":{"line":60,"column":26},"end":{"line":60,"column":41}},{"start":{"line":60,"column":45},"end":{"line":60,"column":58}},{"start":{"line":60,"column":62},"end":{"line":60,"column":64}}],"line":60},"4":{"loc":{"start":{"line":62,"column":8},"end":{"line":64,"column":9}},"type":"if","locations":[{"start":{"line":62,"column":8},"end":{"line":64,"column":9}},{"start":{"line":62,"column":8},"end":{"line":64,"column":9}}],"line":62},"5":{"loc":{"start":{"line":84,"column":4},"end":{"line":90,"column":5}},"type":"if","locations":[{"start":{"line":84,"column":4},"end":{"line":90,"column":5}},{"start":{"line":84,"column":4},"end":{"line":90,"column":5}}],"line":84},"6":{"loc":{"start":{"line":87,"column":15},"end":{"line":87,"column":48}},"type":"cond-expr","locations":[{"start":{"line":87,"column":36},"end":{"line":87,"column":44}},{"start":{"line":87,"column":47},"end":{"line":87,"column":48}}],"line":87},"7":{"loc":{"start":{"line":96,"column":8},"end":{"line":107,"column":9}},"type":"if","locations":[{"start":{"line":96,"column":8},"end":{"line":107,"column":9}},{"start":{"line":96,"column":8},"end":{"line":107,"column":9}}],"line":96}},"s":{"0":1,"1":1,"2":1,"3":1,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":7,"26":7,"27":7,"28":7,"29":7,"30":6,"31":7,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":2,"40":2,"41":2,"42":2,"43":0,"44":1,"45":1,"46":1,"47":0,"48":1,"49":1,"50":1,"51":1,"52":0,"53":0},"f":{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":7,"9":1,"10":2,"11":1,"12":1},"b":{"0":[0,0],"1":[0,0],"2":[0,0,0,0,0],"3":[7,3,3],"4":[6,1],"5":[2,0],"6":[2,0],"7":[0,1]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"51807c801eaa078dd56d3d168d26dcd0d6001453"}
,"/Users/srichter/workspace/batMap/src/utils/ie.js": {"path":"/Users/srichter/workspace/batMap/src/utils/ie.js","statementMap":{"0":{"start":{"line":3,"column":0},"end":{"line":26,"column":2}},"1":{"start":{"line":5,"column":8},"end":{"line":9,"column":9}},"2":{"start":{"line":6,"column":12},"end":{"line":6,"column":28}},"3":{"start":{"line":8,"column":12},"end":{"line":8,"column":33}},"4":{"start":{"line":12,"column":8},"end":{"line":16,"column":9}},"5":{"start":{"line":13,"column":12},"end":{"line":13,"column":69}},"6":{"start":{"line":15,"column":12},"end":{"line":15,"column":59}},"7":{"start":{"line":19,"column":8},"end":{"line":23,"column":10}},"8":{"start":{"line":20,"column":12},"end":{"line":22,"column":13}},"9":{"start":{"line":21,"column":16},"end":{"line":21,"column":27}},"10":{"start":{"line":24,"column":8},"end":{"line":24,"column":35}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":4,"column":12},"end":{"line":4,"column":13}},"loc":{"start":{"line":4,"column":31},"end":{"line":10,"column":5}},"line":4},"1":{"name":"(anonymous_1)","decl":{"start":{"line":11,"column":22},"end":{"line":11,"column":23}},"loc":{"start":{"line":11,"column":72},"end":{"line":17,"column":5}},"line":11},"2":{"name":"(anonymous_2)","decl":{"start":{"line":18,"column":21},"end":{"line":18,"column":22}},"loc":{"start":{"line":18,"column":50},"end":{"line":25,"column":5}},"line":18},"3":{"name":"(anonymous_3)","decl":{"start":{"line":19,"column":38},"end":{"line":19,"column":39}},"loc":{"start":{"line":19,"column":49},"end":{"line":23,"column":9}},"line":19}},"branchMap":{"0":{"loc":{"start":{"line":12,"column":8},"end":{"line":16,"column":9}},"type":"if","locations":[{"start":{"line":12,"column":8},"end":{"line":16,"column":9}},{"start":{"line":12,"column":8},"end":{"line":16,"column":9}}],"line":12},"1":{"loc":{"start":{"line":20,"column":12},"end":{"line":22,"column":13}},"type":"if","locations":[{"start":{"line":20,"column":12},"end":{"line":22,"column":13}},{"start":{"line":20,"column":12},"end":{"line":22,"column":13}}],"line":20}},"s":{"0":1,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0},"f":{"0":0,"1":0,"2":0,"3":0},"b":{"0":[0,0],"1":[0,0]},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"21c872aa3e442ad1cb2d137194c1730eb685091f"}
,"/Users/srichter/workspace/batMap/src/utils/type.js": {"path":"/Users/srichter/workspace/batMap/src/utils/type.js","statementMap":{"0":{"start":{"line":4,"column":4},"end":{"line":4,"column":41}},"1":{"start":{"line":8,"column":4},"end":{"line":8,"column":43}},"2":{"start":{"line":11,"column":0},"end":{"line":14,"column":2}}},"fnMap":{"0":{"name":"isAString","decl":{"start":{"line":3,"column":9},"end":{"line":3,"column":18}},"loc":{"start":{"line":3,"column":30},"end":{"line":5,"column":1}},"line":3},"1":{"name":"isAFunction","decl":{"start":{"line":7,"column":9},"end":{"line":7,"column":20}},"loc":{"start":{"line":7,"column":32},"end":{"line":9,"column":1}},"line":7}},"branchMap":{},"s":{"0":4,"1":3,"2":2},"f":{"0":4,"1":3},"b":{},"_coverageSchema":"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c","hash":"de7e6e2541c5105ac5bd0c1c70c6c12ffb3ad9f3"}
}
Loading

0 comments on commit 6a4af97

Please sign in to comment.