From e58e758d5e19bd89e6998a1ce74733a92d0536b5 Mon Sep 17 00:00:00 2001 From: "Azat S." Date: Sun, 21 Jul 2024 19:13:19 +0300 Subject: [PATCH] docs: add code coverage calculation --- .github/workflows/test.yml | 5 +++++ readme.md | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c986b68ab..02b7090f0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -142,3 +142,8 @@ jobs: - name: Test run: pnpm test:unit + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} diff --git a/readme.md b/readme.md index 6270563f3..7d281207b 100644 --- a/readme.md +++ b/readme.md @@ -8,8 +8,10 @@ width="160" /> -[![Version](https://img.shields.io/npm/v/eslint-plugin-perfectionist.svg?color=4a32c3)](https://www.npmjs.com/package/eslint-plugin-perfectionist) -[![GitHub license](https://img.shields.io/badge/license-MIT-4a32c3.svg)](https://github.com/azat-io/eslint-plugin-perfectionist/blob/main/license) +[![Version](https://img.shields.io/npm/v/eslint-plugin-perfectionist.svg?color=4a32c3&labelColor=1f0067)](https://npmjs.com/package/eslint-plugin-perfectionist) +[![Monthly Download](https://img.shields.io/npm/dm/eslint-plugin-perfectionist.svg?color=4a32c3&labelColor=1f0067)](https://npmjs.com/package/eslint-plugin-perfectionist) +[![Code Coverage](https://img.shields.io/codecov/c/github/azat-io/eslint-plugin-perfectionist.svg?color=4a32c3&labelColor=1f0067)](https://npmjs.com/package/eslint-plugin-perfectionist) +[![GitHub License](https://img.shields.io/badge/license-MIT-232428.svg?color=4a32c3&labelColor=1f0067)](https://github.com/azat-io/eslint-plugin-perfectionist/blob/main/license) ESLint plugin that sets rules to format your code and make it consistent.