Skip to content

Commit

Permalink
Added npm link to build job for tests to run
Browse files Browse the repository at this point in the history
  • Loading branch information
puehringer committed Apr 21, 2022
1 parent e747bd8 commit 7d873bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ jobs:
executor: node-executor
steps:
- checkout
- run:
name: Set default npm install path to $HOME/.local to avoid permission issues
command: npm config set prefix $HOME/.local
- run:
name: Install yo globally (as it is required in the tests)
command: npm i -g yo
- run:
name: Show Node.js and npm version
command: |
Expand All @@ -24,7 +30,9 @@ jobs:
- save_cache:
key: deps1-{{ .Branch }}-{{ checksum "package.json" }}
paths: ./node_modules

- run:
name: Run npm link to make the generator-phovea globally accessible (as required in tests)
command: npm link
- run:
name: Show installed npm dependencies
command: npm list --depth=1 || true
Expand Down

0 comments on commit 7d873bb

Please sign in to comment.