Skip to content

Commit

Permalink
Add Working Directory Option to the Test and Coverage NPM Workflow (#76)
Browse files Browse the repository at this point in the history
# Add Working Directory Option to the Test and Coverage NPM Workflow

## ♻️ Current situation & Problem
- There is currently no way to use a different working directory for the
GitHub action.


## ⚙️ Release Notes 
- Add Working Directory Option to the Test and Coverage NPM Workflow

### Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordBDHG/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordBDHG/.github/blob/main/CONTRIBUTING.md).

Signed-off-by: Paul Schmiedmayer <[email protected]>
  • Loading branch information
PSchmiedmayer authored Jun 13, 2024
1 parent 3c37bed commit 40522a2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/npm-test-and-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
required: false
type: string
default: '18'
working-directory:
description: 'The working directory where the project is located. Defaults to $GITHUB_WORKSPACE'
required: false
type: string
default: '.'
secrets:
token:
description: 'The CodeCov token used for private repositories'
Expand All @@ -24,6 +29,9 @@ on:
jobs:
testandcoverage:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ inputs.working-directory }}
steps:
- uses: actions/checkout@v4
- name: Setup Node
Expand Down

0 comments on commit 40522a2

Please sign in to comment.