Skip to content

chore(ci): consolidate lint and test workflows into single CI workflow#176

Merged
ryoppippi merged 4 commits into
mainfrom
chore/consolidate-ci-workflows
Dec 9, 2025
Merged

chore(ci): consolidate lint and test workflows into single CI workflow#176
ryoppippi merged 4 commits into
mainfrom
chore/consolidate-ci-workflows

Conversation

@ryoppippi

@ryoppippi ryoppippi commented Dec 9, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Merge lint.yaml and test.yaml into a single ci.yaml workflow
  • Add Nix environment initialisation step (nix develop --command true) after setup to pre-warm the cache
  • Run lint, typecheck, build, and tests in sequence within a single job

Benefits

  • Reduces workflow overhead by sharing setup steps
  • Faster CI execution due to cached Nix environment
  • Simpler workflow management with a single CI file

Test plan

  • Verify CI workflow runs successfully on this PR
  • Confirm lint, typecheck, build, and tests all execute correctly

Summary by cubic

Replaced separate lint and test workflows with a single CI workflow to reduce setup duplication and speed up runs with a pre-warmed Nix environment. The job runs lint, typecheck, build, and tests in sequence.

  • Refactors
    • Merged lint.yaml and test.yaml into ci.yaml
    • Added Nix init step (nix develop --command true) to warm the cache
    • Optimized dev shell: skip redundant pnpm installs by checking lockfile timestamps; use --frozen-lockfile

Written for commit 7a0a4b8. Summary will update automatically on new commits.

- Merge lint.yaml and test.yaml into ci.yaml
- Add Nix environment initialisation step after setup
- Run lint, typecheck, build, and tests in sequence
- Reduces workflow overhead by sharing setup steps
@ryoppippi ryoppippi requested a review from a team as a code owner December 9, 2025 12:53
Copilot AI review requested due to automatic review settings December 9, 2025 12:53
@pkg-pr-new

pkg-pr-new Bot commented Dec 9, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/StackOneHQ/stackone-ai-node/@stackone/ai@176

commit: 7a0a4b8

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR consolidates the separate lint.yaml and test.yaml workflows into a single ci.yaml workflow file, improving CI efficiency by sharing setup steps and reducing workflow overhead.

Key changes:

  • Merged two workflows into one, eliminating duplicate setup steps
  • Added Nix environment initialization step to pre-warm the cache before running commands
  • Renamed workflow from "Lint & Type Check" to "CI" and job from "lint" to "ci"

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/test.yaml Removed standalone test workflow (functionality moved to ci.yaml)
.github/workflows/ci.yaml Extended to include tests; added Nix environment initialization step for cache warming

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

Compare pnpm-lock.yaml timestamp against node_modules/.pnpm/lock.yaml
to determine if installation is needed. This avoids redundant installs
when entering the Nix development shell multiple times.

- Check if node_modules/.pnpm/lock.yaml exists
- Compare timestamps using -nt (newer than)
- Use --frozen-lockfile to ensure lockfile consistency

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

Include version control tools in the Nix development environment
for consistent tooling across all developers.
@ryoppippi ryoppippi merged commit eb309f8 into main Dec 9, 2025
9 checks passed
@ryoppippi ryoppippi deleted the chore/consolidate-ci-workflows branch December 9, 2025 13:56
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