Skip to content

Add Node.js CI workflow#2474

Open
darkdream123 wants to merge 1 commit into
decolua:masterfrom
darkdream123:darkdream123-patch-1
Open

Add Node.js CI workflow#2474
darkdream123 wants to merge 1 commit into
decolua:masterfrom
darkdream123:darkdream123-patch-1

Conversation

@darkdream123

Copy link
Copy Markdown

This workflow sets up a CI pipeline for Node.js applications, including installation of dependencies, building the code, and running tests across multiple Node.js versions.

This workflow sets up a CI pipeline for Node.js applications, including installation of dependencies, building the code, and running tests across multiple Node.js versions.
Copilot AI review requested due to automatic review settings July 8, 2026 15:30

Copilot AI left a comment

Copy link
Copy Markdown

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 (install deps, build, and run tests) on pushes and pull requests.

Changes:

  • Introduces a new Node.js CI GitHub Actions workflow.
  • Configures a Node.js version matrix for CI runs.

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

Comment on lines +22 to +31
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build --if-present
- run: npm test
Comment on lines +6 to +10
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
bloodf pushed a commit to bloodf/durindoor that referenced this pull request Jul 9, 2026
Source: decolua/9router#2474

Lock: origin/dev@a3c97f2a49910278081dfcf1c9d6f847d2da6d6d

Hand-ported the upstream 'Add Node.js CI workflow' file onto the two-branch DurinDoor release model. Upstream triggers on master; this fork targets dev + main. npm ci replaced with npm install --no-audit --no-fund (no committed root lockfile; .gitignore:61), cache:npm dropped, build made unconditional, and the Node matrix narrowed to 20 to match ci.yml / test.yml. The upstream npm test step is omitted because DurinDoor already runs the vitest suite and no-regression gate in test.yml.

Skips: duplicated test step to avoid red CI from inherited baseline drifts.

NOTE: This workflow is intentionally a subset of the existing ci.yml; see PR body for why the upstream file is still preserved as a standalone port.
bloodf pushed a commit to bloodf/durindoor that referenced this pull request Jul 9, 2026
Source: decolua/9router#2474

Lock: origin/dev@a3c97f2a49910278081dfcf1c9d6f847d2da6d6d

Hand-ported the upstream 'Add Node.js CI workflow' file onto the two-branch DurinDoor release model. Upstream triggers on master; this fork targets dev + main. Keeps npm ci and cache:npm because package-lock.json is tracked in this fork (verified via git ls-files). Build made unconditional to avoid silently hiding regressions, and Node matrix narrowed to 20 to match ci.yml / test.yml. Upstream npm test step omitted because DurinDoor already runs the vitest suite and no-regression gate in test.yml.

Fixes chatgpt-codex-connector review: use the committed lockfile (npm ci + cache:npm).
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