From 5eccd989b1a8c6205923aceb4b7022a0ffa69006 Mon Sep 17 00:00:00 2001 From: Phred Date: Wed, 15 Dec 2021 09:29:56 -0600 Subject: [PATCH 1/2] added coveralls integration --- .github/workflows/ci.yml | 4 ++++ README.md | 1 + 2 files changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a436dea63..8521b6801 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,5 +30,9 @@ jobs: run: npm run lint - name: Test run: npm test + - name: Coveralls + uses: coverallsapp/github-action@master + with: + github-token: ${{ secrets.GITHUB_TOKEN }} - name: TypeScript Test run: npx --package typescript tsc --project test diff --git a/README.md b/README.md index 13f2dba12..5f8199eb8 100644 --- a/README.md +++ b/README.md @@ -5,6 +5,7 @@ A logger for just about everything. [![Version npm](https://img.shields.io/npm/v/winston.svg?style=flat-square)](https://www.npmjs.com/package/winston) [![npm Downloads](https://img.shields.io/npm/dm/winston.svg?style=flat-square)](https://npmcharts.com/compare/winston?minimal=true) [![build status](https://github.com/winstonjs/winston/actions/workflows/ci.yml/badge.svg)](https://github.com/winstonjs/winston/actions/workflows/ci.yml) +[![coverage status](https://coveralls.io/repos/github/winstonjs/winston/badge.svg?branch=master)](https://coveralls.io/github/winstonjs/winston?branch=master) [![NPM](https://nodei.co/npm/winston.png?downloads=true&downloadRank=true)](https://nodei.co/npm/winston/) From ad9994279aae3bf345282c229c99ad13c951d647 Mon Sep 17 00:00:00 2001 From: Phred Date: Thu, 13 Jan 2022 14:33:30 -0600 Subject: [PATCH 2/2] only report coverage once --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8521b6801..014428a38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,7 @@ jobs: - name: Test run: npm test - name: Coveralls + if: matrix.node === 16 uses: coverallsapp/github-action@master with: github-token: ${{ secrets.GITHUB_TOKEN }}