-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'demo-fn-12-07' into ft-cart_updates
- Loading branch information
Showing
76 changed files
with
11,789 additions
and
5,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Continuous Deployment | ||
|
||
env: | ||
VERCEL_ORG_ID: ${{secrets.VERCEL_ORG_ID}} | ||
VERCEL_PROJECT_ID: ${{secrets.VERCEL_PROJECT_ID}} | ||
|
||
on: | ||
workflow_dispatch: | ||
pull_request: | ||
branches: | ||
- develop | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
jobs: | ||
Test_Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install dependencies | ||
run: npm install | ||
- name: Run test | ||
run: npm run test --if-present | ||
- name: Build | ||
run: npm run build | ||
|
||
Deploy-Preview: | ||
runs-on: ubuntu-latest | ||
needs: [Test_Build] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Install Vercel CLI | ||
run: npm install --global vercel@latest | ||
- name: Pull Vercel Environment Info | ||
run: vercel pull --yes --environment=preview --token=${{secrets.VERCEL_TOKEN}} | ||
- name: Build Project Artifacts | ||
run: vercel build --token=${{secrets.VERCEL_TOKEN}} | ||
- name: Deploy Project Artifacts to Vercel | ||
id: deploy | ||
run: echo "url=$(vercel deploy --prebuilt --token=${{secrets.VERCEL_TOKEN}})" >> $GITHUB_OUTPUT | ||
|
||
- name: Comment PR | ||
uses: actions/github-script@v6 | ||
with: | ||
github-token: ${{secrets.GITHUB_TOKEN}} | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: 'Vercel preview deployment is live at: ${{ steps.deploy.outputs.url }}' | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Continous Integration | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches-ignore: | ||
- develop | ||
|
||
jobs: | ||
Build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Packages | ||
run: npm install | ||
- name: Build | ||
run: npm run build | ||
|
||
Test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Packages | ||
run: npm install | ||
- name: Run tests | ||
run: npm run test --if-present |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Setup and coverage badge | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- '*' | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Packages | ||
run: npm install | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
test-and-coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Packages | ||
run: npm install | ||
|
||
- name: Run Tests with Coverage | ||
run: npm test -- --coverage | ||
|
||
- name: List coverage directory | ||
run: ls -la coverage | ||
|
||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This repository is for multi-vendor E-commerce website | ||
|
||
[![codecov](https://codecov.io/gh/atlp-rwanda/e-commerce-crafters-fn/branch/ft-analytics/graph/badge.svg?token=ZB2U3Q435X)](https://codecov.io/gh/atlp-rwanda/e-commerce-crafters-fn) | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<coverage generated="1719411534857" clover="3.2.0"> | ||
<project timestamp="1719411534857" name="All files"> | ||
<metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1" elements="6" coveredelements="5" complexity="0" loc="3" ncloc="3" packages="1" files="1" classes="1"/> | ||
<file name="Check.tsx" path="/home/ismael/e-commerce-crafters-fn/src/pages/Check.tsx"> | ||
<metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/> | ||
<line num="3" count="1" type="stmt"/> | ||
<line num="4" count="2" type="stmt"/> | ||
<line num="6" count="2" type="stmt"/> | ||
</file> | ||
</project> | ||
</coverage> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{"/home/ismael/e-commerce-crafters-fn/src/pages/Check.tsx": {"path":"/home/ismael/e-commerce-crafters-fn/src/pages/Check.tsx","statementMap":{"0":{"start":{"line":3,"column":14},"end":{"line":18,"column":1}},"1":{"start":{"line":4,"column":36},"end":{"line":4,"column":51}},"2":{"start":{"line":6,"column":2},"end":{"line":17,"column":4}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":3,"column":14},"end":{"line":3,"column":15}},"loc":{"start":{"line":3,"column":20},"end":{"line":18,"column":1}},"line":3}},"branchMap":{"0":{"loc":{"start":{"line":15,"column":7},"end":{"line":15,"column":44}},"type":"binary-expr","locations":[{"start":{"line":15,"column":7},"end":{"line":15,"column":16}},{"start":{"line":15,"column":20},"end":{"line":15,"column":44}}],"line":15}},"s":{"0":1,"1":2,"2":2},"f":{"0":2},"b":{"0":[2,0]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f4fd7aef176069564e1f9661c4424964c5c13b81"} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,145 @@ | ||
|
||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>Code coverage report for Check.tsx</title> | ||
<meta charset="utf-8" /> | ||
<link rel="stylesheet" href="prettify.css" /> | ||
<link rel="stylesheet" href="base.css" /> | ||
<link rel="shortcut icon" type="image/x-icon" href="favicon.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<style type='text/css'> | ||
.coverage-summary .sorter { | ||
background-image: url(sort-arrow-sprite.png); | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class='wrapper'> | ||
<div class='pad1'> | ||
<h1><a href="index.html">All files</a> Check.tsx</h1> | ||
<div class='clearfix'> | ||
|
||
<div class='fl pad1y space-right2'> | ||
<span class="strong">100% </span> | ||
<span class="quiet">Statements</span> | ||
<span class='fraction'>3/3</span> | ||
</div> | ||
|
||
|
||
<div class='fl pad1y space-right2'> | ||
<span class="strong">50% </span> | ||
<span class="quiet">Branches</span> | ||
<span class='fraction'>1/2</span> | ||
</div> | ||
|
||
|
||
<div class='fl pad1y space-right2'> | ||
<span class="strong">100% </span> | ||
<span class="quiet">Functions</span> | ||
<span class='fraction'>1/1</span> | ||
</div> | ||
|
||
|
||
<div class='fl pad1y space-right2'> | ||
<span class="strong">100% </span> | ||
<span class="quiet">Lines</span> | ||
<span class='fraction'>3/3</span> | ||
</div> | ||
|
||
|
||
</div> | ||
<p class="quiet"> | ||
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block. | ||
</p> | ||
<template id="filterTemplate"> | ||
<div class="quiet"> | ||
Filter: | ||
<input type="search" id="fileSearch"> | ||
</div> | ||
</template> | ||
</div> | ||
<div class='status-line high'></div> | ||
<pre><table class="coverage"> | ||
<tr><td class="line-count quiet"><a name='L1'></a><a href='#L1'>1</a> | ||
<a name='L2'></a><a href='#L2'>2</a> | ||
<a name='L3'></a><a href='#L3'>3</a> | ||
<a name='L4'></a><a href='#L4'>4</a> | ||
<a name='L5'></a><a href='#L5'>5</a> | ||
<a name='L6'></a><a href='#L6'>6</a> | ||
<a name='L7'></a><a href='#L7'>7</a> | ||
<a name='L8'></a><a href='#L8'>8</a> | ||
<a name='L9'></a><a href='#L9'>9</a> | ||
<a name='L10'></a><a href='#L10'>10</a> | ||
<a name='L11'></a><a href='#L11'>11</a> | ||
<a name='L12'></a><a href='#L12'>12</a> | ||
<a name='L13'></a><a href='#L13'>13</a> | ||
<a name='L14'></a><a href='#L14'>14</a> | ||
<a name='L15'></a><a href='#L15'>15</a> | ||
<a name='L16'></a><a href='#L16'>16</a> | ||
<a name='L17'></a><a href='#L17'>17</a> | ||
<a name='L18'></a><a href='#L18'>18</a> | ||
<a name='L19'></a><a href='#L19'>19</a> | ||
<a name='L20'></a><a href='#L20'>20</a> | ||
<a name='L21'></a><a href='#L21'>21</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-yes">1x</span> | ||
<span class="cline-any cline-yes">2x</span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-yes">2x</span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span> | ||
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">import React, { useState } from "react"; | ||
| ||
const Check = () => { | ||
const [showExtra, setShowExtra] = useState(false); | ||
| ||
return ( | ||
<div className="flex flex-col items-start font-poppins text-sm"> | ||
<h1 className="text-gray-800"> | ||
If you want to part of the program click button below | ||
</h1> | ||
<button className="py-2 px-7 ml-10 mt-5 bg-purple-700 text-white rounded-md hover:bg-purple-500"> | ||
Confirm | ||
</button> | ||
<h1>hello there</h1> | ||
{showExtra && <span class="branch-1 cbranch-no" title="branch not covered" ><h2>You are welcome</h2>}</span> | ||
</div> | ||
); | ||
}; | ||
| ||
export default Check; | ||
</pre></td></tr></table></pre> | ||
|
||
<div class='push'></div><!-- for sticky footer --> | ||
</div><!-- /wrapper --> | ||
<div class='footer quiet pad2 space-top1 center small'> | ||
Code coverage generated by | ||
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a> | ||
at 2024-06-26T14:18:54.854Z | ||
</div> | ||
<script src="prettify.js"></script> | ||
<script> | ||
window.onload = function () { | ||
prettyPrint(); | ||
}; | ||
</script> | ||
<script src="sorter.js"></script> | ||
<script src="block-navigation.js"></script> | ||
</body> | ||
</html> | ||
|
Oops, something went wrong.