1
0
mirror of synced 2026-05-22 14:43:19 +00:00

Use Codecov

This commit is contained in:
Borewit
2026-02-27 15:29:57 +01:00
parent a40b3296f6
commit 5036fbcdda
3 changed files with 17 additions and 18 deletions
+15 -16
View File
@@ -34,7 +34,7 @@ jobs:
run: yarn run build:dev
- name: Upload build
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v6
with:
name: build
path: |
@@ -54,6 +54,10 @@ jobs:
env:
YARN_IGNORE_NODE: 1
permissions:
contents: read
id-token: write
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
@@ -76,19 +80,23 @@ jobs:
run: yarn install
- name: Download build
uses: actions/download-artifact@v4
uses: actions/download-artifact@v6
with:
name: build
- name: Test with Node.js ${{ matrix.node-version }}
run: yarn run test-coverage
- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
github-token: ${{ secrets.github_token }}
flag-name: run-${{ matrix.test_number }}
parallel: true
use_oidc: true
files: ./coverage/lcov.info
root_dir: ${{ github.workspace }}
disable_search: true
flags: ${{ matrix.os }}-node${{ matrix.node-version }}
fail_ci_if_error: false
verbose: true
test-bun:
name: Test with Bun
@@ -121,12 +129,3 @@ jobs:
- name: Test with Node.js ${{ matrix.node-version }}
run: bun run --bun test
finish:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
+1 -1
View File
@@ -1,7 +1,7 @@
[![CI](https://github.com/Borewit/music-metadata/actions/workflows/ci.yml/badge.svg)](https://github.com/Borewit/music-metadata/actions/workflows/ci.yml)
[![NPM version](https://img.shields.io/npm/v/music-metadata.svg)](https://npmjs.org/package/music-metadata)
[![npm downloads](http://img.shields.io/npm/dm/music-metadata.svg)](https://npmcharts.com/compare/music-metadata?start=600&interval=7)
[![Coverage Status](https://coveralls.io/repos/github/Borewit/music-metadata/badge.svg?branch=master)](https://coveralls.io/github/Borewit/music-metadata?branch=master)
[![codecov](https://codecov.io/gh/Borewit/music-metadata/branch/master/graph/badge.svg)](https://codecov.io/gh/Borewit/music-metadata)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/57d731b05c9e41889a2a17cb4b0384d7)](https://app.codacy.com/app/Borewit/music-metadata?utm_source=github.com&utm_medium=referral&utm_content=Borewit/music-metadata&utm_campaign=Badge_Grade_Dashboard)
[![CodeQL](https://github.com/Borewit/music-metadata/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/Borewit/music-metadata/actions/workflows/codeql-analysis.yml)
[![DeepScan grade](https://deepscan.io/api/teams/5165/projects/6938/branches/61821/badge/grade.svg)](https://deepscan.io/dashboard#view=project&tid=5165&pid=6938&bid=61821)
+1 -1
View File
@@ -105,7 +105,7 @@
"build:prod": "yarn run clean && yarn compile:prod && yarn run doc-gen",
"build": "yarn run build:prod",
"prepublishOnly": "yarn run build",
"test-coverage": "c8 yarn run test",
"test-coverage": "c8 -r lcov -r text yarn run test",
"send-codacy": "c8 report --reporter=text-lcov | codacy-coverage",
"doc-gen": "yarn node doc-gen/gen.js",
"typecheck": "tsc --project ./lib/tsconfig.json --noEmit && tsc --project ./test/tsconfig.json --noEmit",