Skip to content

Commit

Permalink
Merge pull request #26 from TestMECA/develop
Browse files Browse the repository at this point in the history
Use codecov
  • Loading branch information
MohamedRaslan authored Jan 1, 2022
2 parents 66d7bf9 + 2490bb0 commit a25c6ee
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 17 deletions.
18 changes: 1 addition & 17 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,5 @@
["@babel/preset-react", {
"runtime": "automatic"
}]
],
"env": {
"test": {
"plugins": [
["istanbul", {
"exclude": [
"cypress/",
"node_modules/",
"**/*.spec.{js,ts,jsx,tsx}",
"**/*.test.{js,ts,jsx,tsx}"
],
"useInlineSourceMaps": false
}], "transform-class-properties"
]
}
}

]
}
24 changes: 24 additions & 0 deletions .github/workflows/code-quality-pipline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ jobs:
if: ${{ contains( steps.linting.outcome , 'success' ) }}
run: yarn ci:unit:test

- name: Upload unit test coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./cypress/reports/jest-coverage/coverage-final.json
flags: unittest-${{ github.base_ref }} # optional
env_vars: OS,Node

name: codecov-unittest-${{ github.base_ref }} # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

ui-tests:
name: 🔊 UI Testing - ${{ matrix.browser }} Browser
needs: [unit-test]
Expand Down Expand Up @@ -130,3 +142,15 @@ jobs:
!cypress/reports/.nyc_output
!cypress/reports/coverage
!cypress/reports/downloads
- name: Upload UI coverage to Codecov
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
files: ./cypress/reports/cy-coverage/coverage-final.json
flags: ui-tests-${{ matrix.browser }}-${{ github.base_ref }} # optional
env_vars: OS,Node

name: codecov-ui-${{ matrix.browser }}-${{ github.base_ref }} # optional
fail_ci_if_error: true # optional (default = false)
verbose: true # optional (default = false)

0 comments on commit a25c6ee

Please sign in to comment.