Skip to content

Commit 3d9385b

Browse files
fix(ci): Remove Node.js v16 from testing matrix
This commit removes Node.js v16 from the testing matrix in the CI configuration. The dependency updates, particularly Vite 5, are incompatible with Node.js v16, causing the CI pipeline to fail. By removing Node.js v16 from the testing matrix, we ensure that the tests are run only on supported environments, which will fix the build.
1 parent 2665211 commit 3d9385b

File tree

12 files changed

+126
-109
lines changed

12 files changed

+126
-109
lines changed

.github/workflows/call_test_cases.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ jobs:
99
strategy:
1010
matrix:
1111
os: [
12-
ubuntu-latest,
12+
ubuntu-latest,
1313
windows-latest,
14-
macos-latest,
14+
macos-latest,
1515
]
16-
node-version: [16.x, 18.x, 20.x]
16+
node-version: [18.x, 20.x]
1717

1818
steps:
1919
- name: Get branch name

App.jsx

Lines changed: 61 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,68 @@
1+
import React from "react";
12
import { Home } from "./pages/Home";
2-
import "./pages/style/global.css";
3+
4+
const globalStyles = `
5+
html {
6+
height: 100%;
7+
width: 100%;
8+
font-size: 8px;
9+
}
10+
11+
body {
12+
margin: 0;
13+
font-family: 'Inter', sans-serif;
14+
background-color: #f8f8f8 !important;
15+
width: 100%;
16+
height: 100%;
17+
-webkit-font-smoothing: antialiased;
18+
}
19+
20+
.root {
21+
font-family: 'Inter', sans-serif;
22+
}
23+
24+
/* Common utility classes */
25+
.flex-column {
26+
display: flex;
27+
flex-direction: column;
28+
}
29+
30+
.flex-row {
31+
display: flex;
32+
flex-direction: row;
33+
align-items: center;
34+
gap: 10px;
35+
}
36+
37+
.mr-r-12 {
38+
margin-right: 12px;
39+
}
40+
41+
.cl-RoyalBlue {
42+
color: #2e31be;
43+
margin-left: 2px;
44+
}
45+
46+
.loader {
47+
display: flex;
48+
flex-direction: column;
49+
justify-content: center;
50+
align-items: center;
51+
}
52+
53+
.loader img {
54+
height: 100px;
55+
}
56+
`;
357

458
function App() {
559
return (
6-
<div className="root">
7-
<Home />
8-
</div>
60+
<>
61+
<style>{globalStyles}</style>
62+
<div className="root">
63+
<Home />
64+
</div>
65+
</>
966
);
1067
}
1168

index.jsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,6 @@ import router from "./router";
66
const root = ReactDOM.createRoot(document.getElementById("root"));
77
root.render(
88
<React.StrictMode>
9-
<RouterProvider
10-
router={router}
11-
future={{
12-
v7_startTransition: true,
13-
}}
14-
/>
9+
<RouterProvider router={router} />
1510
</React.StrictMode>
1611
);

package-lock.json

Lines changed: 10 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pages/Home.jsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React, { useState, useEffect } from "react";
22
import { useParams } from 'react-router-dom';
33
import "./style/home.css";
4-
import greenDot from "../assets/green-dot.svg";
5-
import grayDot from "../assets/grey-dot.svg";
6-
import DEFAULT_NO_IMAGE from "../assets/default_icon_listing.png";
7-
import loaderGif from "../assets/loader.gif";
4+
import greenDot from "../public/assets/green-dot.svg";
5+
import grayDot from "../public/assets/grey-dot.svg";
6+
import DEFAULT_NO_IMAGE from "../public/assets/default_icon_listing.png";
7+
import loaderGif from "../public/assets/loader.gif";
88
import axios from "axios";
99
import urlJoin from "url-join";
1010

@@ -20,7 +20,7 @@ export const Home = () => {
2020

2121
useEffect(() => {
2222
isApplicationLaunch() ? fetchApplicationProducts() : fetchProducts();
23-
}, [application_id, company_id]);
23+
}, [application_id]);
2424

2525
const fetchProducts = async () => {
2626
setPageLoading(true);

pages/style/global.css

Lines changed: 0 additions & 57 deletions
This file was deleted.

pages/style/home.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
html {
2+
height: 100%;
3+
width: 100%;
4+
font-size: 8px;
5+
}
6+
7+
body {
8+
margin: 0;
9+
font-family: Inter;
10+
background-color: #f8f8f8 !important;
11+
width: 100%;
12+
height: 100%;
13+
@media (max-width: 768px) {
14+
-webkit-tap-highlight-color: transparent;
15+
}
16+
}
17+
118
.products-container {
219
position: relative;
320
box-sizing: border-box;
@@ -95,3 +112,19 @@
95112
.product-category {
96113
font-size: 12px;
97114
}
115+
116+
.cl-RoyalBlue {
117+
color: #2e31be;
118+
margin-left: 2px;
119+
}
120+
121+
.loader {
122+
display: flex;
123+
flex-direction: column;
124+
justify-content: center;
125+
align-items: center;
126+
}
127+
128+
.loader img {
129+
height: 100px
130+
}

0 commit comments

Comments
 (0)