Skip to content

Commit 965e88e

Browse files
committed
add coverage & badges
1 parent 1880691 commit 965e88e

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,14 @@ jobs:
3434
run: pnpm install --frozen-lockfile
3535

3636
- name: Run tests
37-
run: pnpm test
37+
run: pnpm test:cov
3838
env:
3939
NODE_ENV: test
4040
REDIS_HOST: localhost
4141
REDIS_PORT: 6379
42+
43+
- name: Upload coverage reports to Codecov
44+
uses: codecov/codecov-action@v5
45+
with:
46+
token: ${{ secrets.CODECOV_TOKEN }}
47+
slug: uscreen/npg-dev

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# NPG (Node Package Guard)
22

3+
[![CI](https://github.com/uscreen/npg-dev/actions/workflows/test.yml/badge.svg)](https://github.com/uscreen/npg-dev/actions/workflows/test.yml)
4+
[![Known Vulnerabilities](https://snyk.io/test/github/uscreen/npg-dev/badge.svg)](https://snyk.io/test/github/uscreen/npg-dev)
5+
[![codecov](https://codecov.io/gh/uscreen/npg-dev/branch/main/graph/badge.svg)](https://codecov.io/gh/uscreen/npg-dev)
6+
[![License: MIT](https://img.shields.io/github/license/uscreen/npg-dev)](https://opensource.org/license/agpl-v3)
7+
38
A security-focused npm registry proxy that protects your development environment from malicious packages and supply chain attacks while providing high-performance caching.
49

510
## Security Features

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
},
1515
"scripts": {
1616
"dev": "nodemon",
17-
"test": "NODE_ENV=test node --test --test-reporter spec",
18-
"test:cov": "NODE_ENV=test c8 --reporter=html --reporter=text --reporter=json-summary node --test",
17+
"test": "node --test --test-reporter spec",
18+
"test:cov": "c8 --reporter=html --reporter=text --reporter=json-summary --reporter=lcov node --test",
1919
"lint": "eslint .",
2020
"lint:fix": "eslint . --fix"
2121
},

0 commit comments

Comments
 (0)