Skip to content

Commit d23468c

Browse files
committed
Add test coverage summary
1 parent 1d50c92 commit d23468c

File tree

5 files changed

+32
-8
lines changed

5 files changed

+32
-8
lines changed

.github/workflows/nodejs.yml .github/workflows/lint.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,14 @@ jobs:
1212
node-version: [18.x]
1313

1414
steps:
15-
- uses: actions/checkout@v1
15+
- uses: actions/checkout@v3
1616
- name: Use Node.js ${{ matrix.node-version }}
17-
uses: actions/setup-node@v1
17+
uses: actions/setup-node@v3
1818
with:
1919
node-version: ${{ matrix.node-version }}
20-
- name: npm install, build, and test
20+
- name: npm lint
2121
run: |
2222
npm ci
2323
npm run lint
24-
npm test
25-
npm run build --if-present
2624
env:
2725
CI: true

.github/workflows/test.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Node CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [18.x]
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Use Node.js ${{ matrix.node-version }}
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: ${{ matrix.node-version }}
20+
- name: npm test
21+
run: |
22+
npm ci
23+
npm test
24+
env:
25+
CI: true

.nycrc

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
],
99
"reporter": [
1010
"text",
11+
"text-summary",
1112
"lcov",
1213
"clover"
1314
],

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hckrnews/arrays",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "Usefull array helpers.",
55
"files": [
66
"src/helpers.js",

0 commit comments

Comments
 (0)