Skip to content

Commit

Permalink
Merge pull request #139 from rajnishdargan/8.0.0
Browse files Browse the repository at this point in the history
Issue #IQ-694 fix: Fix Linux Image Deprecations
  • Loading branch information
sajeshkayyath authored Mar 15, 2024
2 parents 28f8457 + d85e015 commit 63fd7d0
Showing 1 changed file with 10 additions and 20 deletions.
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

0 comments on commit 63fd7d0

Please sign in to comment.