diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ba8d27a7f..55f5f4490 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/karma.conf.js b/karma.conf.js index 614df15ab..44e6143a1 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -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]} ] }; }