Add test coverage reporting (#8009)
This commit is contained in:
parent
48cd83b9d5
commit
c89c2253fd
3 changed files with 33 additions and 1 deletions
6
.github/codecov.yml
vendored
Normal file
6
.github/codecov.yml
vendored
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
comment:
|
||||||
|
layout: "diff, files"
|
||||||
|
behavior: default
|
||||||
|
require_changes: false
|
||||||
|
require_base: no
|
||||||
|
require_head: no
|
25
.github/workflows/test_coverage.yml
vendored
Normal file
25
.github/workflows/test_coverage.yml
vendored
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
name: Test coverage
|
||||||
|
on:
|
||||||
|
pull_request: {}
|
||||||
|
push:
|
||||||
|
branches: [develop, main, master]
|
||||||
|
jobs:
|
||||||
|
test-coverage:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Yarn cache
|
||||||
|
uses: c-hive/gha-yarn-cache@v2
|
||||||
|
|
||||||
|
- name: Install Deps
|
||||||
|
run: "./scripts/ci/install-deps.sh --ignore-scripts"
|
||||||
|
|
||||||
|
- name: Run tests with coverage
|
||||||
|
run: "yarn install && yarn reskindex && yarn coverage"
|
||||||
|
|
||||||
|
- name: Upload coverage
|
||||||
|
uses: codecov/codecov-action@v2
|
||||||
|
with:
|
||||||
|
verbose: true
|
|
@ -231,7 +231,8 @@
|
||||||
"<rootDir>/src/**/*.{js,ts,tsx}"
|
"<rootDir>/src/**/*.{js,ts,tsx}"
|
||||||
],
|
],
|
||||||
"coverageReporters": [
|
"coverageReporters": [
|
||||||
"text"
|
"text",
|
||||||
|
"json"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue