Skip to content

Add GitHub Actions workflow for Node.js with Webpack#98

Open
zubinqayam wants to merge 1 commit intoperplexityai:mainfrom
zubinqayam:main
Open

Add GitHub Actions workflow for Node.js with Webpack#98
zubinqayam wants to merge 1 commit intoperplexityai:mainfrom
zubinqayam:main

Conversation

@zubinqayam
Copy link
Copy Markdown

No description provided.

Copilot AI review requested due to automatic review settings April 3, 2026 08:26
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 new GitHub Actions workflow intended to build the project on pushes and PRs to main using a Node.js version matrix.

Changes:

  • Introduces .github/workflows/webpack.yml to run a CI build job on ubuntu-latest
  • Configures a Node.js matrix (18.x, 20.x, 22.x)
  • Installs dependencies and runs a Webpack build command

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

Comment on lines +18 to +28
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

- name: Build
run: |
npm install
npx webpack
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

steps: is defined, but the list items below it are not indented under the steps key (the - uses: lines are aligned with steps:). This makes the YAML invalid and the workflow will fail to parse. Indent all step entries so the - items are nested under steps: (matching the indentation style used in .github/workflows/test.yml:12-27).

Suggested change
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install
npx webpack
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Build
run: |
npm install
npx webpack

Copilot uses AI. Check for mistakes.
Comment on lines +25 to +28
- name: Build
run: |
npm install
npx webpack
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

The build step runs npx webpack, but this repository doesn't appear to include Webpack (no webpack dependency in package.json and no webpack config file found). As-is, the workflow will fail at runtime. Either add/configure Webpack as part of this PR, or change the workflow to run the project's existing build script (e.g., npm run build).

Copilot uses AI. Check for mistakes.

- name: Build
run: |
npm install
Copy link

Copilot AI Apr 3, 2026

Choose a reason for hiding this comment

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

This workflow uses npm install even though the repo has a package-lock.json. For CI builds, npm ci is deterministic and typically faster, and it matches existing CI usage in .github/workflows/test.yml:21-22. Consider switching to npm ci here as well to avoid lockfile drift and non-reproducible installs.

Suggested change
npm install
npm ci

Copilot uses AI. Check for mistakes.
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.

2 participants