coverallsapp / github-action

Coveralls Github Action
https://github.com/marketplace/actions/coveralls-github-action
MIT License
468 stars 75 forks source link

Support relative path for "path-to-lcov" argument #70

Open KeisukeYamashita opened 3 years ago

KeisukeYamashita commented 3 years ago

What

When I ran the following step after my test, the step failed

- name: Coveralls
      uses: coverallsapp/github-action@v1.1.2
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        path-to-lcov: ./my/path/relative.info

with the the error Lcov: file not found while if I specify with absolute path, it successes.

- name: Coveralls
      uses: coverallsapp/github-action@v1.1.2
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        path-to-lcov: ${{ github.workspace }}/path/relative/lcov.info
PaulRBerg commented 3 years ago

I don't think that this bug still exists. In my workflow, I'm providing the path like this:

path-to-lcov: "./packages/amm/coverage/lcov.info"

And it works.