Skip to content

Commit

Permalink
Try getting NPM-cache directory for info
Browse files Browse the repository at this point in the history
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
  • Loading branch information
Iku-turso committed Feb 17, 2023
1 parent 28d9e4d commit 0344b7d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
shell: bash
run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT

- name: Echo NPM-cache directory - ${{ steps.npm-cache-dir-path.outputs.dir }}
run: echo Here it is ${{ steps.npm-cache-dir-path.outputs.dir }}

- uses: actions/cache@v3
id: npm-cache # use this to check for `cache-hit` (`steps.npm-cache.outputs.cache-hit != 'true'`)
with:
Expand Down Expand Up @@ -70,6 +73,14 @@ jobs:
ELECTRON_BUILDER_CACHE: ${{ github.workspace }}/.cache/electron-builder
DEBUG: true

- run: npm ci
name: Install dependencies
env:
ELECTRON_CACHE: ${{ github.workspace }}/.cache/electron
electron_config_cache: ${{ github.workspace }}/.cache/electron
ELECTRON_BUILDER_CACHE: ${{ github.workspace }}/.cache/electron-builder
DEBUG: true

- run: npm run test:unit
name: Run tests
if: ${{ matrix.type == 'unit' }}
Expand Down

0 comments on commit 0344b7d

Please sign in to comment.