-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9ed712
commit 520090e
Showing
5 changed files
with
83 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,28 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
node: circleci/[email protected] | ||
|
||
jobs: | ||
build: | ||
executor: | ||
name: node/default | ||
steps: | ||
- checkout | ||
- node/install-packages | ||
- run: npm test | ||
- run: | ||
name: Run tests and generate coverage report | ||
command: npm run test:coverage | ||
- run: | ||
name: Install CodeClimate Test Reporter | ||
command: npm install -g codeclimate-test-reporter | ||
- run: | ||
name: Upload coverage to CodeClimate | ||
command: | | ||
codeclimate-test-reporter < coverage/lcov.info | ||
environment: | ||
CC_TEST_REPORTER_ID: $CC_TEST_REPORTER_ID | ||
|
||
workflows: | ||
version: 2 | ||
build-deploy: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
version: "2" | ||
checks: | ||
argument_count: | ||
enabled: true | ||
file_lines: | ||
enabled: true | ||
method_count: | ||
enabled: true | ||
return_count: | ||
enabled: true | ||
|
||
exclude_paths: | ||
- "node_modules/**" | ||
- "coverage/**" | ||
|
||
engines: | ||
eslint: | ||
enabled: true | ||
config: | ||
extensions: | ||
- .js | ||
- .jsx | ||
|
||
ratings: | ||
paths: | ||
- "**.js" | ||
- "**.jsx" | ||
|
||
test_reporter: | ||
id: "cc-test-reporter" | ||
coverage_file: | ||
- "coverage/lcov.info" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Test Coverage | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: '16' | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Run tests | ||
run: npm run test | ||
|
||
- name: Upload coverage to CodeClimate | ||
env: | ||
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }} | ||
run: | | ||
npm install -g codeclimate-test-reporter | ||
codeclimate-test-reporter < coverage/lcov.info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<div style="display: flex; justify-content: center;" align="center"> | ||
<img src="https://codecov.io/gh/atlp/e-commerce-furebo-32-bn/branch/main/graph/badge.svg?token=25aecf2d-ee44-4ac0-9f91-9f9c38ed5412" alt="Codecov" width="50%"> | ||
<img alt="GitHub Actions Workflow Status" src="https://img.shields.io/github/actions/workflow/status/atlp/e-commerce-furebo-32-bn/job.yaml" width="50%"> | ||
</div> | ||
</div> | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/b8b4783a32fb76cb4953/maintainability)](https://codeclimate.com/github/atlp-rwanda/e-commerce-furebo-32-bn/maintainability) | ||
|
||
[![Test Coverage](https://api.codeclimate.com/v1/badges/b8b4783a32fb76cb4953/test_coverage)](https://codeclimate.com/github/atlp-rwanda/e-commerce-furebo-32-bn/test_coverage) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters