Skip to content

Commit

Permalink
gh-actions: included unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun Yap authored and Jun Yap committed Aug 27, 2024
1 parent c8d6cc1 commit 7aa72f1
Show file tree
Hide file tree
Showing 18 changed files with 443 additions and 184 deletions.
Binary file modified .DS_Store
Binary file not shown.
15 changes: 15 additions & 0 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Unit Tests
on: [push]

jobs:
unit-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run unit tests
run: npm run test
3 changes: 2 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ app.use(cookieParser());
app.use(express.static(path.join(process.cwd(), "public")));
app.use("/", indexRouter);
app.use("/view-entry", viewEntryRouter);
app.use("/view-entry/client/:id", viewEntryRouter);
app.use("/view-entry/all-bookings", viewEntryRouter);

app.use("/execute-algorithm", executeAlgorithmRouter);
app.use("/insert-client-and-request", insertClientRequestRouter);
app.use("/insert-allocated-request", insertAllocatedRequestRouter);
Expand Down
Loading

0 comments on commit 7aa72f1

Please sign in to comment.