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

I have done the necessary configuration changes #21

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion .github/workflows/solar-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
branches:
- main
- 'feature/*'
env:
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
MONGO_URI: ${{ vars.MONGO_URI }}
MONGO_USERNAME: ${{ vars.MONGO_USERNAME }}

jobs:
unit-testing:
Expand All @@ -27,7 +31,35 @@ jobs:
run: npm test

- name: Archive Test Result
if: always()
uses: actions/upload-artifact@v3
with:
name: Mocha-Test-Result
path: test-results.xml
path: test-results.xml

code-coverage:
name: Coverage Testing
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Setup NodeJS Version
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install Dependencies
run: npm install

- name: Unit Testing
continue-on-error: true
run: npm run coverage

- name: Archive Test Result
if: always()
uses: actions/upload-artifact@v3
with:
name: Code-Coverage-Result
path: coverage
retention-days: 5