Skip to content

Create node.js.yml#36

Open
dofaromg wants to merge 2 commits into
CodePlaygroundHub:mainfrom
dofaromg:main
Open

Create node.js.yml#36
dofaromg wants to merge 2 commits into
CodePlaygroundHub:mainfrom
dofaromg:main

Conversation

@dofaromg
Copy link
Copy Markdown

@dofaromg dofaromg commented May 7, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 7, 2026 01:55
@dofaromg
Copy link
Copy Markdown
Author

dofaromg commented May 7, 2026

@copilot

@dofaromg dofaromg marked this pull request as draft May 7, 2026 01:57
@dofaromg dofaromg marked this pull request as ready for review May 7, 2026 01:57
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a GitHub Actions workflow intended to run Node.js CI on pushes and pull requests targeting main.

Changes:

  • Introduces .github/workflows/node.js.yml to install dependencies, build, and run tests across a Node.js version matrix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +29 to +31
- run: npm ci
- run: npm run build --if-present
- run: npm test
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot apply changes based on this feedback

Comment thread .github/workflows/node.js.yml
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@dofaromg
Copy link
Copy Markdown
Author

dofaromg commented May 7, 2026

@copilot apply changes based on the comments in this thread

1 similar comment
@dofaromg
Copy link
Copy Markdown
Author

dofaromg commented May 7, 2026

@copilot apply changes based on the comments in this thread

@dofaromg
Copy link
Copy Markdown
Author

dofaromg commented May 7, 2026

@copilot

Copy link
Copy Markdown
Author

@dofaromg dofaromg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok

@dofaromg dofaromg marked this pull request as draft May 7, 2026 13:59
@dofaromg dofaromg marked this pull request as ready for review May 7, 2026 13:59
@dofaromg
Copy link
Copy Markdown
Author

dofaromg commented May 7, 2026

@copilot apply changes based on the comments in this thread

@dofaromg dofaromg marked this pull request as draft May 7, 2026 14:00
@dofaromg dofaromg marked this pull request as ready for review May 7, 2026 14:00
Copy link
Copy Markdown
Collaborator

@Akash504-ai Akash504-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @dofaromg for the contribution. Please add a proper PR description explaining what was added, why the workflow is needed and what problem it solves.
Also the current workflow will fail because npm commands are being executed from the repository root, while this project uses separate frontend and backend directories.

@dofaromg
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

3 similar comments
@dofaromg
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

@dofaromg
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

@dofaromg
Copy link
Copy Markdown
Author

@copilot apply changes based on the comments in this thread

@dofaromg dofaromg requested a review from Akash504-ai May 14, 2026 13:32
@Akash504-ai Akash504-ai self-assigned this May 15, 2026
Copy link
Copy Markdown
Collaborator

@Akash504-ai Akash504-ai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I checked the changes again, but there’s still one issue remaining. Right now the workflow commands are still running from the repository root:

- run: npm ci
- run: npm run build --if-present
- run: npm test

This repo has separate frontend and backend folders, so these commands will fail unless there’s a root-level package.json.

Please create separate jobs for frontend/backend (or use working-directory for each). Also, npm test should use --if-present if no test script exists yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants