]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Record test coverage per browser (#8033)
authorJukka Kurkela <jukka.kurkela@gmail.com>
Tue, 10 Nov 2020 17:59:11 +0000 (19:59 +0200)
committerGitHub <noreply@github.com>
Tue, 10 Nov 2020 17:59:11 +0000 (19:59 +0200)
.github/workflows/ci.yml
karma.conf.js

index ba8d27a7f137da04f5a1e4b88fb10d38d7fccfe0..55f5f4490b4043665d6db6691593a5a546bfd03e 100644 (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
 
 
index 614df15ab8abff8fe720fc2fd68c6778d35c1ad2..44e6143a102e67cb5c0ea0c3834daf9653f8a99e 100644 (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]}
                        ]
                };
        }