github-action icon indicating copy to clipboard operation
github-action copied to clipboard

Action should support the global working-directory

Open dominikwilkowski opened this issue 2 years ago • 0 comments

Github has a global that it supports called working-directory. This enables you to run an action in a specified working directory. This action seems to ignore it which leads to thing like this:

coverage-nodejs:
  defaults:
    run:
      working-directory: ./nodejs

  steps:
    - uses: actions/checkout@v2
    - uses: actions/setup-node@v3
    - run: yarn install --frozen-lockfile
    - run: yarn build
    - run: yarn jest --coverage
    - run: tail ./coverage/lcov.info
    #      ^-- this outputs the actual last few lines of the lcov.info successfully
    - uses: coverallsapp/github-action@master
      with:
        github-token: ${{ secrets.GITHUB_TOKEN }}
        path-to-lcov: ./nodejs/coverage/lcov.info
        #               ^-- ignoring working-directory here
        base-path: ./nodejs
        #          ^-- duplication of working-directory perhaps?

dominikwilkowski avatar May 27 '22 06:05 dominikwilkowski