From e9416b000673ffb94628a5cfc0a8b20fd77af66e Mon Sep 17 00:00:00 2001 From: Zay Yan Paing Hein <56286346+Zay-Yan@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:06:50 +0630 Subject: [PATCH 1/7] Update solar-system.yml --- .github/workflows/solar-system.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/solar-system.yml b/.github/workflows/solar-system.yml index 2f79be49e..c69dc0040 100644 --- a/.github/workflows/solar-system.yml +++ b/.github/workflows/solar-system.yml @@ -6,7 +6,10 @@ on: branches: - main - 'feature/*' - +env: + MONGO_URI: ‘mongodb+srv://supercluster.d83jj.mongodb.net/superData' + MONGO_USERNAME: superuser + MONGO_PASSWORD: SuperPassword jobs: unit-testing: name: Unit Testing @@ -30,4 +33,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: Mocha-Test-Result - path: test-results.xml \ No newline at end of file + path: test-results.xml From 30f3310149e114d0fe9ad17e5a8b968ec0e65d5b Mon Sep 17 00:00:00 2001 From: Zay Yan Paing Hein <56286346+Zay-Yan@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:09:08 +0630 Subject: [PATCH 2/7] Update solar-system.yml --- .github/workflows/solar-system.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/solar-system.yml b/.github/workflows/solar-system.yml index c69dc0040..2976e9c66 100644 --- a/.github/workflows/solar-system.yml +++ b/.github/workflows/solar-system.yml @@ -9,7 +9,7 @@ on: env: MONGO_URI: ‘mongodb+srv://supercluster.d83jj.mongodb.net/superData' MONGO_USERNAME: superuser - MONGO_PASSWORD: SuperPassword + MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }} jobs: unit-testing: name: Unit Testing From 9e59c0d0f125e881813fcc455f5983450645dc44 Mon Sep 17 00:00:00 2001 From: Zay Yan Paing Hein <56286346+Zay-Yan@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:13:36 +0630 Subject: [PATCH 3/7] Update solar-system.yml --- .github/workflows/solar-system.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/solar-system.yml b/.github/workflows/solar-system.yml index 2976e9c66..93b5ef37f 100644 --- a/.github/workflows/solar-system.yml +++ b/.github/workflows/solar-system.yml @@ -5,7 +5,7 @@ on: push: branches: - main - - 'feature/*' + - 'features/*' env: MONGO_URI: ‘mongodb+srv://supercluster.d83jj.mongodb.net/superData' MONGO_USERNAME: superuser From 293fce2a0805cb99bc62df7f69f01e4419579190 Mon Sep 17 00:00:00 2001 From: Zay Yan Paing Hein <56286346+Zay-Yan@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:17:26 +0630 Subject: [PATCH 4/7] Update solar-system.yml --- .github/workflows/solar-system.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/solar-system.yml b/.github/workflows/solar-system.yml index 93b5ef37f..437b54f1e 100644 --- a/.github/workflows/solar-system.yml +++ b/.github/workflows/solar-system.yml @@ -7,7 +7,7 @@ on: - main - 'features/*' env: - MONGO_URI: ‘mongodb+srv://supercluster.d83jj.mongodb.net/superData' + MONGO_URI: 'mongodb+srv://supercluster.d83jj.mongodb.net/superData' MONGO_USERNAME: superuser MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }} jobs: From 40c438f89932e23087136b5ae97dd3261fdcce57 Mon Sep 17 00:00:00 2001 From: Zay Yan Paing Hein <56286346+Zay-Yan@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:19:41 +0630 Subject: [PATCH 5/7] Update solar-system.yml --- .github/workflows/solar-system.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/solar-system.yml b/.github/workflows/solar-system.yml index 437b54f1e..4f5f2b631 100644 --- a/.github/workflows/solar-system.yml +++ b/.github/workflows/solar-system.yml @@ -5,7 +5,7 @@ on: push: branches: - main - - 'features/*' + - 'feature/*' env: MONGO_URI: 'mongodb+srv://supercluster.d83jj.mongodb.net/superData' MONGO_USERNAME: superuser From 2dc39e51a175f6576b274538d28158334638dfb4 Mon Sep 17 00:00:00 2001 From: Zay Yan Paing Hein <56286346+Zay-Yan@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:48:43 +0630 Subject: [PATCH 6/7] Updated --- .github/workflows/solar-system.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/solar-system.yml b/.github/workflows/solar-system.yml index 4f5f2b631..72cd2f67d 100644 --- a/.github/workflows/solar-system.yml +++ b/.github/workflows/solar-system.yml @@ -34,3 +34,23 @@ jobs: with: name: Mocha-Test-Result path: test-results.xml + + code-coverage: + name: code coverage + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + - name: Setup NodeJS + uses: actions/setup-node + - name: Install NodeJS dependencies + run: npm install + - name: Code-Coverage + continue-on-error: true + run: npm run code-coverage + - name: Code-Coverage-Result + uses: actions/upload-artifact@v3 + with: + name: Code-Coverage-Result + path: coverage + retention-days: 5 \ No newline at end of file From 9245f9c9f817b3a8ddd725c1def8392003c6e370 Mon Sep 17 00:00:00 2001 From: Zay Yan Paing Hein <56286346+Zay-Yan@users.noreply.github.com> Date: Fri, 23 Feb 2024 00:59:26 +0630 Subject: [PATCH 7/7] Update solar-system.yml --- .github/workflows/solar-system.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/solar-system.yml b/.github/workflows/solar-system.yml index 72cd2f67d..59d45e3c7 100644 --- a/.github/workflows/solar-system.yml +++ b/.github/workflows/solar-system.yml @@ -42,7 +42,12 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - name: Setup NodeJS - uses: actions/setup-node + uses: actions/setup-node@v3 + - name: Cache NPM dependencies + uses: actions/cache@v3 + with: + path: ~/.npm + key: '${{ runner.os }}-node-modules-${{ hashFiles(''package-lock.json'') }}' - name: Install NodeJS dependencies run: npm install - name: Code-Coverage @@ -53,4 +58,4 @@ jobs: with: name: Code-Coverage-Result path: coverage - retention-days: 5 \ No newline at end of file + retention-days: 5