Skip to content

Commit

Permalink
feat: adds codecov (#6236)
Browse files Browse the repository at this point in the history
* feat: adds codecov

* fix: adds codecov token

* feat: adds codecov badge to README.mc

* fix: removes community package
  • Loading branch information
AlexanderMelox authored Oct 18, 2024
1 parent dc53a09 commit 0f53889
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
30 changes: 30 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
coverage:
status:
project:
default:
informational: true
patch:
default:
informational: true

# This is the configuration on how the codecov report layout will look like in PR's
comment:
layout: 'header, diff, flags, components'

component_management:
default_rules:
statuses:
- type: project
target: auto
threshold: 1%
branches:
- '!main'
individual_components:
- component_id: ibm-products
name: ibm-products
paths:
- ../packages/ibm-products/**
- component_id: ibm-products-web-components
name: ibm-products-web-components
paths:
- ../packages/ibm-products-web-components/**
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,11 @@ jobs:
- name: Install
run: yarn
- name: CI tests for c4p
run: yarn ci-check:test:c4p
run: yarn ci-check:test:c4p --collectCoverage
- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: CI snapshot tests for c4p
run: yarn ci-check:test:c4p:snapshot
test-c4p-wc:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
[![Netlify status](https://img.shields.io/netlify/e8cd9972-0fc8-4c51-a911-e9a930ca6605)](https://app.netlify.com/sites/carbon-for-ibm-products/deploys)
[![GitHub Lerna version](https://img.shields.io/github/lerna-json/v/carbon-design-system/ibm-products)](https://lerna.js.org)
[![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen)](https://github.com/carbon-design-system/ibm-products/blob/master/.github/CONTRIBUTING.md)
[![codecov](https://codecov.io/gh/carbon-design-system/ibm-products/graph/badge.svg?token=TKEL92HSUK)](https://codecov.io/gh/carbon-design-system/ibm-products)

## 🚀 Getting started

Expand Down

0 comments on commit 0f53889

Please sign in to comment.