forked from Sunbird-inQuiry/player
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/feature-pratham' into main
- Loading branch information
Showing
122 changed files
with
110,071 additions
and
63,883 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,46 +1,37 @@ | ||
version: 2.1 | ||
orbs: | ||
browser-tools: circleci/[email protected] | ||
jobs: | ||
build: | ||
machine: | ||
image: ubuntu-2004:202010-01 | ||
docker: | ||
- image: cimg/node:18.19.1-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 | ||
# - run: | ||
# name: Installing angular cli | ||
# command: 'npm install -g @angular/cli@16 --no-progress' | ||
# - 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 | ||
- run: | ||
name: Install project dependencies | ||
command: | | ||
if [ ! -d "node_modules" ]; then | ||
npm i -f | ||
fi | ||
command: npm install --no-progress | ||
- save_cache: | ||
key: node_modules_cache_{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
- 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 | ||
|
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: CI Build and Test Pipeline | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build-and-test: | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [18] | ||
|
||
steps: | ||
- name: Checkout Code Repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set Up Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
cache-dependency-path: package-lock.json | ||
|
||
- name: Install Project Dependencies | ||
run: npm ci | ||
|
||
- name: Execute Tests | ||
run: npm run test-lib-ci | ||
|
||
- name: Build Library | ||
run: npm run build-lib |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.