Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🛠️ Repo: Migrate to codecov from coveralls #3943

Open
boneskull opened this issue Jun 5, 2019 · 2 comments
Open

🛠️ Repo: Migrate to codecov from coveralls #3943

boneskull opened this issue Jun 5, 2019 · 2 comments
Labels
area: repository tooling concerning ease of contribution core-team issues which must be handled by Mocha's core team status: accepting prs Mocha can use your help with this one! type: chore generally involving deps, tooling, configuration, etc.

Comments

@boneskull
Copy link
Member

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 boneskull added type: chore generally involving deps, tooling, configuration, etc. good first issue new contributors should look here! labels Jun 5, 2019
@craigtaub
Copy link
Contributor

Not the best contrast IMO

@JoshuaKGoldberg JoshuaKGoldberg added area: repository tooling concerning ease of contribution core-team issues which must be handled by Mocha's core team and removed good first issue new contributors should look here! labels Dec 27, 2023
@JoshuaKGoldberg JoshuaKGoldberg changed the title migrate to codecov from coveralls? 🛠️ Repo: Migrate to codecov from coveralls? Dec 27, 2023
@JoshuaKGoldberg JoshuaKGoldberg changed the title 🛠️ Repo: Migrate to codecov from coveralls? 🛠️ Repo: Migrate to codecov from coveralls Dec 28, 2023
@JoshuaKGoldberg JoshuaKGoldberg added the status: accepting prs Mocha can use your help with this one! label Feb 6, 2024
@msimerson
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: repository tooling concerning ease of contribution core-team issues which must be handled by Mocha's core team status: accepting prs Mocha can use your help with this one! type: chore generally involving deps, tooling, configuration, etc.
Projects
None yet
Development

No branches or pull requests

4 participants