mocha icon indicating copy to clipboard operation
mocha copied to clipboard

🛠️ Repo: Migrate to codecov from coveralls

Open boneskull opened this issue 5 years ago • 2 comments

I like the output codecov.io gives in its integration.

Example:

image

The graphical stuff is kind of useless, but it provides good contextual information otherwise.

@mochajs/core anyone have an opinion on this?

boneskull avatar Jun 05 '19 22:06 boneskull

Not the best contrast IMO

craigtaub avatar Jun 06 '19 17:06 craigtaub

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 }}

msimerson avatar Feb 08 '24 23:02 msimerson