mocha
mocha copied to clipboard
🛠️ Repo: Migrate to codecov from coveralls
I like the output codecov.io gives in its integration.
Example:
The graphical stuff is kind of useless, but it provides good contextual information otherwise.
@mochajs/core anyone have an opinion on this?
Not the best contrast IMO
How about removing the dependencies from the repo entirely and doing code coverage in a GHA workflow? Here's how I do it:
in a shared coverage.yml
name: Test Coverage
on:
workflow_call:
env:
CI: true
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/setup-node@v4
with:
node-version: lts/*
- uses: actions/checkout@v4
- run: npm install
- name: run coverage
run: npx -y c8 --reporter=lcov npm test
env:
NODE_ENV: cov
- name: codecov
uses: codecov/codecov-action@v2
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}