Skip to content

Commit

Permalink
feat: add codecov github action and add github actions badges to read…
Browse files Browse the repository at this point in the history
…me (#11)
  • Loading branch information
ildar-icoosoft authored Oct 24, 2020
1 parent af31e7d commit ddc4e07
Show file tree
Hide file tree
Showing 5 changed files with 64 additions and 0 deletions.
File renamed without changes.
45 changes: 45 additions & 0 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Codecov

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
run:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x]

steps:
- name: Begin CI...
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- name: Use cached node_modules
uses: actions/cache@v1
with:
path: node_modules
key: nodeModules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
nodeModules-
- name: Install dependencies
run: yarn install --frozen-lockfile
env:
CI: true

- name: Test
run: yarn test --ci --coverage --maxWorkers=2
env:
CI: true

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@ node_modules
.cache
dist
/.idea/

# testing
/coverage
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
<h1 align="center">react-libraries</h1>

<div align="center">

A collection of useful react libraries

![CI](https://github.com/ildar-icoosoft/react-libraries/workflows/CI/badge.svg)
![Semantic Release](https://github.com/ildar-icoosoft/react-libraries/workflows/Semantic%20Release/badge.svg)
[![codecov](https://codecov.io/gh/ildar-icoosoft/react-libraries/branch/master/graph/badge.svg?token=G34ATTWUCT)](https://codecov.io/gh/ildar-icoosoft/react-libraries)

</div>

# TSDX React User Guide

Congrats! You just saved yourself hours of work by bootstrapping this project with TSDX. Let’s get you oriented with what’s here and how to use it.
Expand Down
4 changes: 4 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
comment:
layout: 'reach,diff,flags,tree'
behavior: default
require_changes: no

0 comments on commit ddc4e07

Please sign in to comment.