Skip to content

Commit

Permalink
test stage
Browse files Browse the repository at this point in the history
  • Loading branch information
Junitalama committed Jan 31, 2024
1 parent 2aa9e2b commit 68471f9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 22 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/frontend-s3-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,20 @@ on:
- main

jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend/farm_volunteers

steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install Dependencies
run: npm install
- name: Run tests
run: npm test

deploy:
runs-on: ubuntu-latest

Expand Down
40 changes: 18 additions & 22 deletions frontend/farm_volunteers/src/App.js
Original file line number Diff line number Diff line change
@@ -1,37 +1,33 @@
import React from "react";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import "./App.css";
import Volunteers from "./Components/Volunteers";
import ImgMediaCard from "./Components/Card";
import Header from "./Components/Header";
import BookSession from "./Components/BookSession";
import Contact from "./Components/Contact";
import Footer from "./Components/Footer";
import CustomizedMenus from "./Components/ViewOption";
import { Switch, Route } from "react-router-dom";
import BookSession from "./Components/BookSession";


import Footer from "./Components/Footer";
import Header from "./Components/Header";
import ImgMediaCard from "./Components/Card";
import Volunteers from "./Components/Volunteers";

const Main = () => (
<Switch>
<Route exact path="/" component={ImgMediaCard}></Route>
<Route exact path="/manager" component={Volunteers}></Route>
<Route exact path="/volunteer" component={BookSession}></Route>
<Route exact path="/" component={ImgMediaCard} />
<Route exact path="/manager" component={Volunteers} />
<Route exact path="/volunteer" component={BookSession} />
</Switch>
);

function App() {
return (
<div className="app">
<Header />
<CustomizedMenus />
<Main />



<Contact />

<Footer />
</div>
<Router>
<div className="app">
<Header />
<CustomizedMenus />
<Main />
<Contact />
<Footer />
</div>
</Router>
);
}

Expand Down

0 comments on commit 68471f9

Please sign in to comment.