GithubHelp home page GithubHelp logo

Comments (3)

zgosalvez avatar zgosalvez commented on June 15, 2024

The log file shows something similar to a previous issue that I resolved in this #9 (comment). Basically, your log doesn't show any input, however it appears your coverage-files input is properly set. I'm wondering if this

const globber = await glob.create(coverageFilesPattern);
is the cause of the problem, OR maybe your coverage/lcov.info doesn't exist. Thoughts?

from github-actions-report-lcov.

RatakondalaArun avatar RatakondalaArun commented on June 15, 2024

Hey @zgosalvez
I put some log statements and verified that coverage/lcov.info exists

Generating LCOV report...
Generated coverage in /home/runner/work/****/*******/packages/bridge_common

.
..
coverage.json
lcov.info

After trying different setting it seems to work now below is my changed workflow

  coverage:
    name: 💹 Generate coverage report
    needs: [test]
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: 🔧 Setup Dart SDK
        uses: dart-lang/[email protected]

      - name: 🏗 Install dependencies
        run: dart pub get

      - name: 📝 Generate Coverage
        working-directory: packages/
        run: ./coverage.sh bridge_common && ls -a bridge_common && ls -a bridge_common/coverage

      - name: 📃 Report Coverage
        uses: zgosalvez/[email protected]
        with:
          coverage-files: "packages/bridge_common/coverage/*.info"
          minimum-coverage: 0 # todo: update minimum coverage
          artifact-name: common-coverage-report
          github-token: ${{ secrets.GITHUB_TOKEN }}
          # working-directory: packages/bridge_common/

from github-actions-report-lcov.

zgosalvez avatar zgosalvez commented on June 15, 2024

Glad you found a solution! 🎉

from github-actions-report-lcov.

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.