From c298c25de7e5cbedaf0fc4d6f268caf428542255 Mon Sep 17 00:00:00 2001 From: hozayves Date: Mon, 29 Apr 2024 13:33:29 +0200 Subject: [PATCH] [finishes 187511688]-implement-badges-status(CI/CD)-show-whether-passed-or-failed --- .coveralls.yml | 2 ++ .github/workflows/main.yaml | 6 ++++++ README.md | 9 +++++++++ package.json | 1 + 4 files changed, 18 insertions(+) create mode 100644 .coveralls.yml diff --git a/.coveralls.yml b/.coveralls.yml new file mode 100644 index 00000000..f7f22796 --- /dev/null +++ b/.coveralls.yml @@ -0,0 +1,2 @@ +service_name: "github" +repo_token: $COVERALLS_REPO_TOKEN \ No newline at end of file diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index d11561a2..c60852e7 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -29,6 +29,12 @@ jobs: DB_USER: ${{ secrets.DEV_DB_USER }} DB_PASSWORD: ${{ secrets.DEV_DB_PASSWORD }} DB_HOST: ${{ secrets.DEV_DB_HOST }} + - name: Send Coverage to Coveralls + env: + COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} + run: | + npm install -D coveralls + npx coveralls build: name: Build diff --git a/README.md b/README.md index 93ff4255..d451b00e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,13 @@ [![Reviewed by Hound](https://img.shields.io/badge/Reviewed_by-Hound-8E64B0.svg)](https://houndci.com) +[![.github/workflows/main.yaml](https://github.com/atlp-rwanda/e-commerce-mavericcks-bn/actions/workflows/main.yaml/badge.svg)](https://github.com/atlp-rwanda/e-commerce-mavericcks-bn/actions/workflows/main.yaml) +[![Coverage Status]()](https://github.com/atlp-rwanda/e-commerce-mavericcks-bn.git) + + + + +![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white) ![Express.js](https://img.shields.io/badge/express.js-%23404d59.svg?style=for-the-badge&logo=express&logoColor=%2361DAFB) ![Static Badge](https://img.shields.io/badge/Sequelize-blue?style=for-the-badge&logo=nodedotjs&logoColor=white) + + # e-commerce-mavericcks-bn diff --git a/package.json b/package.json index 140615de..21efa559 100644 --- a/package.json +++ b/package.json @@ -69,6 +69,7 @@ "@typescript-eslint/eslint-plugin": "^7.7.0", "@typescript-eslint/parser": "^7.7.0", "babel-jest": "^29.7.0", + "coveralls": "^3.1.1", "cross-env": "^7.0.3", "eslint-config-prettier": "^9.1.0", "eslint-plugin-prettier": "^5.1.3",