Skip to content

Commit f9ef8fd

Browse files
committed
add CI workflow
1 parent bc4e691 commit f9ef8fd

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ jobs:
1010
- name: Install NPM dependencies 📦
1111
uses: bahmutov/npm-install@v1
1212

13-
- name: Run tests 🧪
14-
run: npm test
15-
16-
- name: Show GitHub variables 📊
17-
run: npm run github-demo
13+
- name: Check all covered files 📊
14+
run: |
15+
node bin/check-coverage main1.js
16+
node bin/check-coverage to/main2.js
17+
node bin/only-covered main1.js main2.js
1818
1919
- name: Semantic Release 🚀
2020
uses: cycjimmy/semantic-release-action@v2

.nyc_output/out.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"main1.js": {
3+
"path": "main1.js",
4+
"s": {
5+
"0": 2,
6+
"1": 1,
7+
"2": 2,
8+
"3": 1
9+
}
10+
},
11+
12+
"main2.js": {
13+
"path": "/path/to/main2.js",
14+
"s": {
15+
"0": 2,
16+
"1": 1,
17+
"2": 2,
18+
"3": 1
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)