You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
use codecov
This commit is contained in:
32
.github/workflows/tests.yml
vendored
32
.github/workflows/tests.yml
vendored
@@ -25,6 +25,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
|
|
||||||
|
- name: Update npm
|
||||||
|
run: npm i -g
|
||||||
|
|
||||||
- name: Install Packages
|
- name: Install Packages
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
@@ -34,22 +37,13 @@ jobs:
|
|||||||
- name: Run Tests
|
- name: Run Tests
|
||||||
run: npm run test -- --forbid-only --redis-version=${{ matrix.redis-version }}
|
run: npm run test -- --forbid-only --redis-version=${{ matrix.redis-version }}
|
||||||
|
|
||||||
- name: Generate lcov
|
- name: Upload to Codecov
|
||||||
run: ./node_modules/.bin/nyc report -r lcov
|
run: |
|
||||||
|
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
|
||||||
- name: Coveralls
|
curl -Os https://uploader.codecov.io/latest/linux/codecov
|
||||||
uses: coverallsapp/github-action@1.1.3
|
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM
|
||||||
with:
|
curl -Os https://uploader.codecov.io/latest/linux/codecov.SHA256SUM.sig
|
||||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
|
||||||
flag-name: Node ${{ matrix.node-version }} Redis ${{ matrix.redis-version }}
|
shasum -a 256 -c codecov.SHA256SUM
|
||||||
parallel: true
|
chmod +x codecov
|
||||||
|
./codecov
|
||||||
finish:
|
|
||||||
needs: tests
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Coveralls Finished
|
|
||||||
uses: coverallsapp/github-action@1.1.3
|
|
||||||
with:
|
|
||||||
github-token: ${{ secrets.github_token }}
|
|
||||||
parallel-finished: true
|
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"extends": "@istanbuljs/nyc-config-typescript",
|
"extends": "@istanbuljs/nyc-config-typescript",
|
||||||
"exclude": ["**/*.spec.ts", "lib/test-utils.ts"]
|
"exclude": ["**/*.spec.ts", "lib/test-utils.ts", "examples/*"]
|
||||||
}
|
}
|
||||||
|
@@ -6,8 +6,8 @@
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<a href="https://coveralls.io/github/redis/node-redis">
|
<a href="https://codecov.io/gh/redis/node-redis" >
|
||||||
<img src="https://coveralls.io/repos/github/redis/node-redis/badge.svg" alt="Coverage Status"/>
|
<img src="https://codecov.io/gh/redis/node-redis/branch/master/graph/badge.svg?token=xcfqHhJC37" alt="Coverage"/>
|
||||||
</a>
|
</a>
|
||||||
<a href="https://www.npmjs.com/package/redis/v/next">
|
<a href="https://www.npmjs.com/package/redis/v/next">
|
||||||
<img src="https://img.shields.io/npm/dm/redis.svg" alt="Downloads"/>
|
<img src="https://img.shields.io/npm/dm/redis.svg" alt="Downloads"/>
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "nyc -r text-summary -r html mocha -r source-map-support/register -r ts-node/register './lib/**/*.spec.ts'",
|
"test": "nyc -r text-summary -r lcov mocha -r source-map-support/register -r ts-node/register './lib/**/*.spec.ts'",
|
||||||
"build": "tsc",
|
"build": "tsc",
|
||||||
"lint": "eslint ./*.ts ./lib/**/*.ts",
|
"lint": "eslint ./*.ts ./lib/**/*.ts",
|
||||||
"documentation": "typedoc"
|
"documentation": "typedoc"
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "nyc -r text-summary -r html mocha -r source-map-support/register -r ts-node/register './lib/**/*.spec.ts'",
|
"test": "nyc -r text-summary -r lcov mocha -r source-map-support/register -r ts-node/register './lib/**/*.spec.ts'",
|
||||||
"build": "tsc"
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
@@ -5,7 +5,7 @@
|
|||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "nyc -r text-summary -r html mocha -r source-map-support/register -r ts-node/register './lib/**/*.spec.ts'",
|
"test": "nyc -r text-summary -r lcov mocha -r source-map-support/register -r ts-node/register './lib/**/*.spec.ts'",
|
||||||
"build": "tsc"
|
"build": "tsc"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
|
Reference in New Issue
Block a user