Skip to content

Commit

Permalink
fix(dependencies-cache): handle jest cache dir properly
Browse files Browse the repository at this point in the history
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
  • Loading branch information
neilime committed Mar 29, 2024
1 parent ac26bd6 commit 3041ac5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actions/dependencies-cache/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ runs:
if: fromJson(steps.has-installed-dependencies.outputs.installed-dependencies).jest == true
shell: bash
run: |
JEST_CACHE_DIR=$(${{ steps.get-package-manager.outputs.run-script-command }} jest --showConfig | grep -oP '(?<="cacheDirectory": ")[^"]+(?=")')
JEST_CACHE_DIR=$(${{ steps.get-package-manager.outputs.run-script-command }} jest -- --showConfig | grep -oP '(?<="cacheDirectory": ")[^"]+(?=")')
echo "dir=$JEST_CACHE_DIR" >> "$GITHUB_OUTPUT"
- name: ♻️ Test cache
Expand Down

0 comments on commit 3041ac5

Please sign in to comment.