Skip to content

Commit

Permalink
chore: readme: add codecov support and add build, npm and codecov bad…
Browse files Browse the repository at this point in the history
…ges to readme (EightfoldAI#52)
  • Loading branch information
ychhabra-eightfold authored Apr 11, 2022
1 parent 6d108f6 commit 7c2d97e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 6 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/pr-main.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test and lint
name: Build

on:
push:
Expand All @@ -18,14 +18,29 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Load cached node_modules
uses: actions/cache@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('yarn.lock') }}
- run: yarn
- run: yarn test
- name: Upload code coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Load cached node_modules
uses: actions/cache@v3
with:
path: node_modules
key: node_modules-${{ hashFiles('yarn.lock') }}
- run: yarn
- run: yarn lint
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Eightfold Octuple Design System Component Library

[![npm version](https://badge.fury.io/js/@eightfold.ai%2Foctuple.svg)](https://badge.fury.io/js/@eightfold.ai%2Foctuple) [![build status](https://github.com/EightfoldAI/octuple/actions/workflows/pr-main.yml/badge.svg?branch=main)](https://github.com/EightfoldAI/octuple/actions/workflows/pr-main.yml) [![codecov](https://codecov.io/gh/yrchhabra-eightfold/octuple/branch/main/graph/badge.svg?token=K2BV6M1JS5)](https://codecov.io/gh/yrchhabra-eightfold/octuple)

## About

Octuple creates a shared language and visual consistency across different pages and channels.
Expand Down
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,6 @@
"roots": [
"<rootDir>/src"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts"
],
"setupFiles": [
"react-app-polyfill/jsdom",
"jest-localstorage-mock"
Expand Down Expand Up @@ -214,7 +210,13 @@
"jest-watch-typeahead/filename",
"jest-watch-typeahead/testname"
],
"resetMocks": false
"resetMocks": false,
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!src/**/*.d.ts",
"!src/**/*.stories.{js,jsx,ts,tsx}"
]
},
"babel": {
"presets": [
Expand Down

0 comments on commit 7c2d97e

Please sign in to comment.