Record test coverage per browser (#8033)

This commit is contained in:
Jukka Kurkela 2020-11-10 19:59:11 +02:00 committed by GitHub
parent 183637b87f
commit 63ab5a03d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -49,11 +49,19 @@ jobs:
npm run docs
npm run typedoc
npm pack
- name: Coveralls Parallel
- name: Coveralls Parallel - Chrome
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.os }}
path-to-lcov: './coverage/chrome/lcov.info'
flag-name: ${{ matrix.os }}-chrome
parallel: true
- name: Coveralls Parallel - Firefox
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
path-to-lcov: './coverage/firefox/lcov.info'
flag-name: ${{ matrix.os }}-firefox
parallel: true

View File

@ -112,7 +112,7 @@ module.exports = function(karma) {
dir: 'coverage/',
reporters: [
{type: 'html', subdir: 'html'},
{type: 'lcovonly', subdir: '.'}
{type: 'lcovonly', subdir: (browser) => browser.toLowerCase().split(/[ /-]/)[0]}
]
};
}