Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Test Project

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
container: image: node:20
steps:
-uses: actions/checkout@v3
with: node-version: 20
-run: npm ci
-run: npm test
-run: npm run build



2 changes: 2 additions & 0 deletions src/controllers/recipes/getRecipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ export async function getRecipe(req, res) {

const { id } = req.params;

console.log(`Fetching recipe with ID: ${id}`);

try {

return httpResponse(200, 'Recipe Found', {
Expand Down