Skip to content

Commit

Permalink
(fix): code coverage badge (#101)
Browse files Browse the repository at this point in the history
- changed ci actions to use codecov

[Fixes #100]
  • Loading branch information
jkarenzi authored May 27, 2024
1 parent 8193ee8 commit d66c4f1
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/workflow_for_ecomm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/__test__/testSetup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ export const getBuyerToken = async () => {

export async function afterAllHook() {
await DbConnection.instance.disconnectDb();
}
}

0 comments on commit d66c4f1

Please sign in to comment.