Skip to content

Coverage output in Github Action is different to when run locally #566

Open

Description

@rubengmurray

First of, I don't know whether this is within scope of c8 or not, but I'm sharing here anyway for further input / visibility.

NOTE: Our test suite is run via the same npm scripts - which control the choreography of downloading all docker containers + spinning up the server in the same order - in Github vs Local so I see no reason why the metric should be different, but here is the output.

Local:

Image

Github Action

Image

Process:

  • Run test script
  • Script pulls down required docker dependencies
  • Spin up node server
  • Test APIs from mocha
  • Use c8 to track test coverage

Anyone seen this before / any pointers?

Activity

  1. MeirionHughes commented on Aug 17, 2025

    @MeirionHughes

    I'm getting exactly the same issue. same coverage scripts report different coverage between my local (windows) and github action (ubuntu I think?)

  2. rubengmurray commented on Jan 7, 2026

    @rubengmurray
    Author

    Interesting point on OS. I'm running locally on macOS, but in the cloud on ubuntu-latest.

    Just had this come up again

    Github Action
    Image

    Local
    Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions