# SonarCloud cannot read coverage informations - SonarCloud with GitHub Actions

**URL:** <https://community.sonarsource.com/t/sonarcloud-cannot-read-coverage-informations-sonarcloud-with-github-actions/49762>\
**Category:** SonarQube Cloud\
**Tags:** github-actions, coverage\
**Created:** [September 14, 2021, 5:10pm UTC](https://community.sonarsource.com/t/sonarcloud-cannot-read-coverage-informations-sonarcloud-with-github-actions/49762 "2021-09-14T17:10:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![geeksilva97](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/geeksilva97/32/25693_2.png) [@geeksilva97](https://community.sonarsource.com/u/geeksilva97)\
**Post date:** [September 14, 2021, 5:10pm UTC](https://community.sonarsource.com/t/sonarcloud-cannot-read-coverage-informations-sonarcloud-with-github-actions/49762/1 "2021-09-14T17:10:28Z")

</div>

Hi guys.  
My team and I are using SonarCloud with GitHub Actions and so far everything has been working fine. However, we are now facing an issue where the sonar is not reading coverage information.

There were no changes in the workflow, but it started to happen. Locally we can see coverage by HTML report and it is working as expected.

Here is our workflow code:

```auto
name: Test push
on: push
jobs:
  test:
    runs-on: ubuntu-latest

    strategy:
      matrix:
        node-version: [10.x]
        mongodb-version: [4.0]

    steps:
      - uses: actions/checkout@v2
        with:
          # Disabling shallow clone is recommended for improving relevancy of reporting
          fetch-depth: 0

      - name: Use Node.js ${{ matrix.node-version }}
        uses: actions/setup-node@v1
        with:
          node-version: ${{ matrix.node-version }}

      - name: Start MongoDB
        uses: supercharge/mongodb-github-action@1.3.0
        with:
          mongodb-version: ${{ matrix.mongodb-version }}

      - name: Install packages
        run: npm ci

      - name: Build typescript
        run: npm run build

      - name: Test
        run: npm run test:coverage

      - name: SonarCloud Scan
        uses: sonarsource/sonarcloud-github-action@master
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
        with:
          projectBaseDir: "/home/runner/work/estudaqui-cloudcode/estudaqui-cloudcode/"
          args: >
            -Dsonar.sources="src/cloud"
            -Dsonar.exclusions="**/*.constants.ts"
            -Dsonar.tests="test/"
            -Dsonar.test.inclusions="**/*.spec.ts"
            -Dsonar.typescript.lcov.reportPaths="coverage/lcov.info"
            -Dsonar.coverage.exclusions=" **/node_modules/** /*"
            -Dsonar.organization=estudaqui
            -Dsonar.projectKey=developerestudaqui_estudaqui-cloudcode

      - name: Dispatch deploy production
        if: ${{ github.ref == 'refs/heads/master' }}
        uses: peter-evans/repository-dispatch@v1
        with:
          token: ${{ secrets.REPO_ACCESS_TOKEN }}
          repository: ${{ github.repository }}
          event-type: deploy-production
          client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'

```

The **npm run test: coverage** executes the command **nyc --reporter = lcov npm run test** and put informations in **coverage/lcov.info**.

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![Antonio\_Garcia](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/antonio_garcia/32/12996_2.png) [@Antonio\_Garcia](https://community.sonarsource.com/u/Antonio_Garcia)\
**Post date:** [September 16, 2021, 6:43am UTC](https://community.sonarsource.com/t/sonarcloud-cannot-read-coverage-informations-sonarcloud-with-github-actions/49762/2 "2021-09-16T06:43:28Z")

</div>

Hi @geeksilva97 as you can see in [our documentation](https://sonarcloud.io/documentation/enriching/coverage/) about test coverage, the correct parameter name should be `sonar.javascript.lcov.reportPaths` . The property name you used was considered deprecated, and recently dropped, on August 16th.

If you could replace it with the correct parameter, your coverage information should come back. Please let us know if you need anything else.

Best regards,  
Antonio

---

<div class="post-metadata">

**Author:** ![geeksilva97](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/geeksilva97/32/25693_2.png) [@geeksilva97](https://community.sonarsource.com/u/geeksilva97)\
**Post date:** [September 17, 2021, 11:48am UTC](https://community.sonarsource.com/t/sonarcloud-cannot-read-coverage-informations-sonarcloud-with-github-actions/49762/3 "2021-09-17T11:48:57Z")

</div>

Thanks for helping. I’ll replace the param and test.
