Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sanjay-bharwani-valtech opened this issue Sep 17, 2024 · 0 comments

Comments

@sanjay-bharwani-valtech

Below is snippet from our CI pipeline.

      - name: Coverage Report
        uses: romeovs/[email protected]
        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/[email protected]
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/[email protected]. 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
 

@sanjay-bharwani-valtech sanjay-bharwani-valtech changed the title Action Fails on the tag pipeline for version 4.0 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] Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant