diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d76ce9cf..3aaeda22 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/README.md b/README.md index dfa705c5..3f4cc5ad 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/package.json b/package.json index 2582ac58..e02a3866 100644 --- a/package.json +++ b/package.json @@ -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",