Skip to content

Commit

Permalink
Merge pull request #103 from RishiVaya/actions
Browse files Browse the repository at this point in the history
Added Github Actions to workflow
  • Loading branch information
quinnha authored Dec 30, 2023
2 parents 43e1410 + f044222 commit 30496ef
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 6 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/node-client.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node Client CI

on:
push:
branches: ["*"]
pull_request:
branches: ["*"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
cache-dependency-path: ./src/leo-client-app/package-lock.json

- name: Clean Install Client App
run: npm ci
working-directory: ./src/leo-client-app
- name: Build Client App
run: npm run build --if-present
working-directory: ./src/leo-client-app
29 changes: 29 additions & 0 deletions .github/workflows/node-server.js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs

name: Node Server CI

on:
push:
branches: ["*"]
pull_request:
branches: ["*"]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18.x
cache: npm
cache-dependency-path: ./src/leo-server-app/package-lock.json

- name: Clean Install Server App
run: npm ci
working-directory: ./src/leo-server-app
- name: Build Server App
run: npm run build --if-present
working-directory: ./src/leo-server-app
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ docs - Documentation for the project
refs - Reference material used for the project, including papers
src - Source code
test - Test cases
etc.
etc.
11 changes: 7 additions & 4 deletions src/leo-client-app/src/components/FuturePasses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ const FuturePasses: React.FC = () => {

return (
<Stack alignItems="center" spacing={2}>
<h1>Next Week's Passes</h1>
<h1>Next Week&apos;s Passes</h1>
<TableContainer
component={Paper}
sx={{ maxWidth: 650, background: "#40403fb0" }}>
sx={{ maxWidth: 650, background: "#40403fb0" }}
>
<Table aria-label="simple table">
<TableHead>
<TableRow>
Expand All @@ -71,12 +72,14 @@ const FuturePasses: React.FC = () => {
{passes.map((passPair, index) => (
<TableRow
key={passPair[0].time + index}
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}>
sx={{ "&:last-child td, &:last-child th": { border: 0 } }}
>
<TableCell
sx={{ color: "white !important" }}
align="center"
component="th"
scope="row">
scope="row"
>
{passPair[0].type === "Enter" && <>{passPair[0].time}</>}
</TableCell>
<TableCell sx={{ color: "white !important" }} align="center">
Expand Down
2 changes: 1 addition & 1 deletion src/leo-client-app/src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ export default function Index() {

useEffect(() => {
replace("/satellite-passes");
}, [pathname]);
}, [pathname, replace]);
return null;
}

0 comments on commit 30496ef

Please sign in to comment.