Skip to content

Commit 088293e

Browse files
authored
Merge pull request #17 from hckrnews/feature/coverage-sonarcloud
Add test coverage summary
2 parents f9978e1 + 68f8f64 commit 088293e

File tree

5 files changed

+33
-9
lines changed

5 files changed

+33
-9
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Node CI
1+
name: Node Lint
22

33
on: [push]
44

@@ -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 Test
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)