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 should support the global working-directory #122

Open
dominikwilkowski opened this issue May 27, 2022 · 0 comments
Open

Action should support the global working-directory #122

dominikwilkowski opened this issue May 27, 2022 · 0 comments

Comments

@dominikwilkowski
Copy link

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?
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