Skip to content

Action Fails on the tag pipeline for version 4.0 [TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined] #88

@sanjay-bharwani-valtech

Description

Below is snippet from our CI pipeline.

      - name: Coverage Report
        uses: romeovs/lcov-reporter-action@v0.4.0
        with:
         lcov-file: ./coverage/coverage_with_exclusion.info
         title: 'Code Coverage Report'

Our tag pipeline started failing with version 0.4.0 with below error

Run romeovs/lcov-reporter-action@v0.4.0
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
    at Object.join (node:path:1175:7)
    at createHref (/home/runner/work/_actions/romeovs/lcov-reporter-action/v0.4.0/dist/main.js:22801:19)
    at filename (/home/runner/work/_actions/romeovs/lcov-reporter-action/v0.4.0/dist/main.js:22895:27)
    at toRow (/home/runner/work/_actions/romeovs/lcov-reporter-action/v0.4.0/dist/main.js:22885:6)
    at /home/runner/work/_actions/romeovs/lcov-reporter-action/v0.4.0/dist/main.js:22833:33
    at Array.map (<anonymous>)
    at /home/runner/work/_actions/romeovs/lcov-reporter-action/v0.4.0/dist/main.js:22833:[21](https://github.com/easyjet-dev/da-mobile-app/actions/runs/10901252834/job/30250722067#step:7:22)
    at Array.reduce (<anonymous>)
    at tabulate (/home/runner/work/_actions/romeovs/lcov-reporter-action/v0.4.0/dist/main.js:[22](https://github.com/easyjet-dev/da-mobile-app/actions/runs/10901252834/job/30250722067#step:7:23)829:4)
    at comment (/home/runner/work/_actions/romeovs/lcov-reporter-action/v0.4.0/dist/main.js:22984:4) {
  code: 'ERR_INVALID_ARG_TYPE'

It used to work fine in version 0.3.1 however we had to upgrade it due to GitHub going to force  

test / Unit testThe following actions uses node12 which is deprecated and will be forced to run on node16: romeovs/lcov-reporter-action@v0.3.1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/Show less
 

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