Git Product home page Git Product logo

Comments (4)

deepankarb avatar deepankarb commented on June 20, 2024 3

It's still not clear how multiple flags will get associated with multiple reports. E.g.:

- name: Code coverage (via codecov.io)
      if: matrix.api-level == 29 # Only upload coverage from API 29
      uses: codecov/codecov-action@v2
      with:
        files: engine/build/reports/coverage/debug/report.xml, datacapture/build/reports/coverage/debug/report.xml, datacapturegallery/build/reports/coverage/debug/report.xml
        flags: engine, datacapture, datacapturegallery
        fail_ci_if_error: true
        verbose: true

Generates the following:

/Users/runner/work/_actions/codecov/codecov-action/v2/dist/codecov -n  -Q github-action-2.1.0 -Z -f engine/build/reports/coverage/debug/report.xml -f  datacapture/build/reports/coverage/debug/report.xml -f  datacapturegallery/build/reports/coverage/debug/report.xml -F engine -F  datacapture -F  datacapturegallery -C <redacted> -v

I don't think this is correct.

There should be a way to configure a monorepo with multiple projects / modules, one for each flag.

from codecov-action.

blueyed avatar blueyed commented on June 20, 2024

description: 'Flag upload to group coverage metrics (e.g. unittests | integration | ui,chrome)'
has examples.

from codecov-action.

ibrahim0814 avatar ibrahim0814 commented on June 20, 2024

Good point! I've added instructions for how to specify multiple flags in this commit

from codecov-action.

deepankarb avatar deepankarb commented on June 20, 2024

To clarify, I have the coverage reports generated for each module in a single step. There should be a way to pick each report and associate with a flag each.

Currently is seems it is only possible via hacks like this: https://stackoverflow.com/questions/66561281/optimal-usage-of-codecov-in-a-monorepo-context-with-separate-flags-for-each-pack

from codecov-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.