Use Codecov
This commit is contained in:
+15
-16
@@ -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,7 +1,7 @@
|
||||
[](https://github.com/Borewit/music-metadata/actions/workflows/ci.yml)
|
||||
[](https://npmjs.org/package/music-metadata)
|
||||
[](https://npmcharts.com/compare/music-metadata?start=600&interval=7)
|
||||
[](https://coveralls.io/github/Borewit/music-metadata?branch=master)
|
||||
[](https://codecov.io/gh/Borewit/music-metadata)
|
||||
[](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)
|
||||
[](https://github.com/Borewit/music-metadata/actions/workflows/codeql-analysis.yml)
|
||||
[](https://deepscan.io/dashboard#view=project&tid=5165&pid=6938&bid=61821)
|
||||
|
||||
+1
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user