diff --git a/.github/workflows/workflow_for_ecomm.yml b/.github/workflows/workflow_for_ecomm.yml index 73e8e63c..64eb5fdc 100644 --- a/.github/workflows/workflow_for_ecomm.yml +++ b/.github/workflows/workflow_for_ecomm.yml @@ -25,12 +25,13 @@ jobs: - run: npm run test --if-present - run: npm run build --if-present - run: npm run test:ci --if-present - - run: npx update-badge - run: npm run lint --if-present - - name: Upload coverage to Coveralls - uses: coverallsapp/github-action@v2 + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 with: - allow-empty: true + token: ${{ secrets.CODECOV_TOKEN }} + slug: atlp-rwanda/dynamites-ecomm-be + directory: coverage/ env: DB_PORT_DEV: ${{ secrets.DB_PORT_DEV }} DB_USER_DEV: ${{ secrets.DB_USER_DEV }} diff --git a/README.md b/README.md index ce34ac9d..48dba2f1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -![check-code-coverage](https://img.shields.io/badge/code--coverage-96.25%25-brightgreen) +[![CI for ecomm-project for Dynamite](https://github.com/atlp-rwanda/dynamites-ecomm-be/actions/workflows/workflow_for_ecomm.yml/badge.svg)](https://github.com/atlp-rwanda/dynamites-ecomm-be/actions/workflows/workflow_for_ecomm.yml) + +[![codecov](https://codecov.io/gh/atlp-rwanda/dynamites-ecomm-be/graph/badge.svg?token=I1G8CMQKBH)](https://codecov.io/gh/atlp-rwanda/dynamites-ecomm-be) # Dynamites API ## Overview @@ -7,7 +9,7 @@ Welcome to Dynamites API! This project provides the backend API for the dynamite ## Documentation -Find the API documentation at https://dynamites-ecomm-be-backend-hosting.onrender.com/api-docs +Find the API documentation at https://dynamites-ecomm-be.onrender.com/api-docs ## Installation diff --git a/src/__test__/testSetup.ts b/src/__test__/testSetup.ts index b672e9ab..0d70d148 100644 --- a/src/__test__/testSetup.ts +++ b/src/__test__/testSetup.ts @@ -129,4 +129,4 @@ export const getBuyerToken = async () => { export async function afterAllHook() { await DbConnection.instance.disconnectDb(); -} +} \ No newline at end of file