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

linux image change #78

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 9 additions & 28 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,27 @@
version: 2.1
orbs:
browser-tools: circleci/[email protected]
jobs:
build:
machine:
image: ubuntu-2004:202010-01
docker:
- image: cimg/node:14.21.3-browsers
steps:
- checkout
- browser-tools/install-chrome
- run:
name: Install Node.js v14 with build in nvm tool
command: |
export NVM_DIR="/opt/circleci/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install v14 && nvm use 14 && nvm alias default 14
node -v
command: google-chrome --version
- checkout
- run:
name: Check Node version
command: node -v
- restore_cache:
keys:
- node_modules_cache_{{ checksum "package-lock.json" }}
- run:
name: Install QuML Library dependencies
command: cd projects/quml-library && npm install --no-progress
command: cd projects/quml-library && npm install --no-progress --legacy-peer-deps
- run:
name: Install project dependencies
command: |
if [ ! -d "node_modules" ]; then
npm i -f
fi
- save_cache:
key: node_modules_cache_{{ checksum "package-lock.json" }}
paths:
- node_modules
command: npm install --no-progress
- run:
name: Executing test cases
command: npm run test-lib-ci
- run:
name: Install Node.js v16 with build in nvm tool
command: |
export NVM_DIR="/opt/circleci/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
nvm install v16 && nvm use 16 && nvm alias default 16
node -v
- run:
name: Install sonar scanner
command: npm install -g sonarqube-scanner
Expand Down
177 changes: 57 additions & 120 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.