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

Issue #IQ-694 fix: Fix Linux Image Deprecations #139

Merged
merged 13 commits into from
Mar 15, 2024
30 changes: 10 additions & 20 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
version: 2.1
orbs:
browser-tools: circleci/[email protected]
jobs:
build:
machine:
image: circleci/classic:latest
steps:
- checkout
- run:
name: run build file
command: /bin/bash -x build.sh ${CIRCLE_SHA1} test
test-cases:
working_directory: ~/sunbird-questionset-editor
machine:
image: default
docker:
- image: cimg/node:14.21.3-browsers
steps:
- browser-tools/install-chrome
- run:
command: google-chrome --version
- checkout:
path: ~/sunbird-questionset-editor
- 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: Node version
command: 'node --version'
Expand All @@ -47,7 +37,7 @@ jobs:
command: npm install -g sonarqube-scanner
- run:
name: Run sonar scanner
command: 'cd ~/sunbird-questionset-editor && sonar-scanner'
command: 'cd ~/sunbird-questionset-editor && sonar-scanner'
- run:
name: Publish to NPM
command: |
Expand All @@ -67,9 +57,9 @@ jobs:
npm publish project-sunbird-sunbird-questionset-editor-web-component-* --access=public
else
npm run build-web-component && npm pack ./web-component
fi
fi
workflows:
version: 2.1
build_and_test:
jobs:
- test-cases
- build