-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from rajnishdargan/8.0.0
Issue #IQ-694 fix: Fix Linux Image Deprecations
- Loading branch information
Showing
1 changed file
with
10 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' | ||
|
@@ -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: | | ||
|
@@ -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 |