From c6b574a48694a415cc9de8c82e1c59e5da968e43 Mon Sep 17 00:00:00 2001 From: ildar Date: Sun, 25 Oct 2020 04:00:52 +0500 Subject: [PATCH 1/3] update github actions in readme --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 33ce677..0bd8099 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,14 @@ +

react-libraries

+ +
+ +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) + +
+ # 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. From 66cc10d8a3fc96f11e731cd975ee2a12f48fe8f8 Mon Sep 17 00:00:00 2001 From: ildar Date: Sun, 25 Oct 2020 04:11:04 +0500 Subject: [PATCH 2/3] codecov action --- .github/workflows/{main.yml => ci.yml} | 0 .github/workflows/codecov.yml | 45 ++++++++++++++++++++++++++ .gitignore | 3 ++ codecov.yml | 4 +++ 4 files changed, 52 insertions(+) rename .github/workflows/{main.yml => ci.yml} (100%) create mode 100644 .github/workflows/codecov.yml create mode 100644 codecov.yml diff --git a/.github/workflows/main.yml b/.github/workflows/ci.yml similarity index 100% rename from .github/workflows/main.yml rename to .github/workflows/ci.yml diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml new file mode 100644 index 0000000..7059e9b --- /dev/null +++ b/.github/workflows/codecov.yml @@ -0,0 +1,45 @@ +name: Codecov + +on: + push: + branches: [ master, github-actions ] + 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 diff --git a/.gitignore b/.gitignore index 1f84231..4d13476 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,6 @@ node_modules .cache dist /.idea/ + +# testing +/coverage diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..815edd7 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,4 @@ +comment: + layout: 'reach,diff,flags,tree' + behavior: default + require_changes: no From 4a365729ca102e8b6e4397b9c3596d9dad25f62b Mon Sep 17 00:00:00 2001 From: ildar Date: Sun, 25 Oct 2020 04:17:45 +0500 Subject: [PATCH 3/3] add codecov badge to readme --- .github/workflows/codecov.yml | 2 +- README.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 7059e9b..1776afa 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -2,7 +2,7 @@ name: Codecov on: push: - branches: [ master, github-actions ] + branches: [ master ] pull_request: branches: [ master ] diff --git a/README.md b/README.md index 0bd8099..ecda17b 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ 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)