Skip to content

working-directory not working as expected. #300

@vveliev

Description

@vveliev

When configuring working-directory to be ./app i'm expecting that file reports will be sourced relative to the path. However this is not the case and at the moment as the workaround I need to set coverage file with workdir.

Usage case

when I have code in the ./app folder, with coverage inside ./app/coverage/lcov.info'

I'm expecting this to work=

    - name: Report Code Coverage
      uses: zgosalvez/github-actions-report-lcov@v4
      with:
        coverage-files: ${{ inputs.coverage-files }}
        github-token: ${{ secrets.GITHUB_TOKEN }}
        working-directory: ${{ inputs.workdir }}

workaround:

    - name: Report Code Coverage
      uses: zgosalvez/github-actions-report-lcov@v4
      with:
        coverage-files: " ${{ inputs.workdir }}/${{ inputs.coverage-files }}"
        github-token: ${{ secrets.GITHUB_TOKEN }}
        working-directory: ${{ inputs.workdir }}

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