Skip to content

Commit

Permalink
Fix/pipeline #38 (#39)
Browse files Browse the repository at this point in the history
* fix: fixing nodejs pipeline

* fix: fixing nodejs pipeline
  • Loading branch information
stephane-segning authored Apr 25, 2024
1 parent 0b8974f commit 702976e
Show file tree
Hide file tree
Showing 12 changed files with 260 additions and 124 deletions.
22 changes: 10 additions & 12 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@ name: Node.js CI

on:
push:
branches:
branches:
- '*'

pull_request:
branches:
branches:
- '*'

jobs:
build:

runs-on: ubuntu-latest

strategy:
Expand All @@ -23,12 +22,11 @@ jobs:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: yarn install --frozen-lockfile
- run: yarn build

- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: yarn install --frozen-lockfile
- run: yarn build
2 changes: 1 addition & 1 deletion docs/ExportAsCsv.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ sequenceDiagram
```

This sequence diagram provides a clear visualization of the steps involved in exporting data as a CSV file, from user request through data formatting and delivery. This functionality is especially useful in applications where data portability and offline data analysis are important features.
This sequence diagram provides a clear visualization of the steps involved in exporting data as a CSV file, from user request through data formatting and delivery. This functionality is especially useful in applications where data portability and offline data analysis are important features.
2 changes: 1 addition & 1 deletion docs/Pagination.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ sequenceDiagram
```

This sequence outlines the interactions involved in fetching and displaying paginated scan results. This process ensures that the system can efficiently handle large datasets by only fetching and displaying a manageable subset of data at a time, which is crucial for performance and usability.
This sequence outlines the interactions involved in fetching and displaying paginated scan results. This process ensures that the system can efficiently handle large datasets by only fetching and displaying a manageable subset of data at a time, which is crucial for performance and usability.
2 changes: 1 addition & 1 deletion docs/SequenceDiagramExample.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ sequenceDiagram
```

This sequence diagram provides a clear, step-by-step visualization of the interactions involved in capturing and storing a photo in the system. It helps in understanding the flow of data and control between different parts of the application, which is essential for both development and troubleshooting.
This sequence diagram provides a clear, step-by-step visualization of the interactions involved in capturing and storing a photo in the system. It helps in understanding the flow of data and control between different parts of the application, which is essential for both development and troubleshooting.
6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,7 @@
"vite-plugin-eslint": "^1.8.1"
},
"lint-staged": {
"*.ts": [
"eslint --fix",
"prettier --write"
],
"*.tsx": [
"*.{ts,tsx,cjs,svg,json}": [
"eslint --fix",
"prettier --write"
]
Expand Down
15 changes: 7 additions & 8 deletions src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,16 @@ import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import UserLogin from './components/UserLogin';
import Homepage from './components/home-page';


/**
* The main application component.
*/
export function App(): JSX.Element {
return (
<Router>
<Routes>
<Route path="/" element={<Homepage />} />
<Route path="/login" element={<UserLogin/>} />
</Routes>
</Router>
);
<Router>
<Routes>
<Route path="/" element={<Homepage />} />
<Route path="/login" element={<UserLogin />} />
</Routes>
</Router>
);
}
2 changes: 1 addition & 1 deletion src/components/UserLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import React from 'react';

const UserLogin: React.FC = () => {
return <h2>Login</h2>;
}
};

export default UserLogin;
3 changes: 1 addition & 2 deletions src/components/home-page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';

const Homepage: React.FC = () => {
return <h2>Home</h2>;
}
};

export default Homepage;

2 changes: 1 addition & 1 deletion src/components/startnewscan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import React from 'react';

const StartNewScan: React.FC = () => {
return <h2>Start a new scan</h2>;
}
};

export default StartNewScan;
2 changes: 1 addition & 1 deletion src/components/take-photo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import React from 'react';

const TakePhoto: React.FC = () => {
return <h2>Take a photo</h2>;
}
};

export default TakePhoto;
2 changes: 1 addition & 1 deletion src/components/view-past-scan.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import React from 'react';

const ViewPastScan: React.FC = () => {
return <h2>View past scan</h2>;
}
};

export default ViewPastScan;
Loading

0 comments on commit 702976e

Please sign in to comment.