Skip to content

🔧 Add SessionStart hook to ensure dependencies are installed#6705

Merged
dubzzz merged 2 commits into
mainfrom
claude/improve-github-actions-JEmzC
Mar 7, 2026
Merged

🔧 Add SessionStart hook to ensure dependencies are installed#6705
dubzzz merged 2 commits into
mainfrom
claude/improve-github-actions-JEmzC

Conversation

@dubzzz

@dubzzz dubzzz commented Mar 7, 2026

Copy link
Copy Markdown
Owner

Description

This PR adds a SessionStart hook that automatically ensures project dependencies are installed before Claude starts working. The hook runs a bash script that:

  1. Installs pnpm globally via npm if it's not already available
  2. Installs project dependencies using pnpm install --frozen-lockfile if node_modules is missing or empty

This is particularly important in CI environments (like GitHub Actions) where pnpm install may not have been run yet, ensuring Claude has access to all necessary dependencies when it begins working on the codebase.

Checklist

  • I have a full understanding of every line in this PR
  • I flagged the impact of my change (minor / patch / major) either by running pnpm run bump or by following the instructions from the changeset bot
  • I kept this PR focused on a single concern and did not bundle unrelated changes
  • I followed the gitmoji specification for the name of the PR
  • No tests needed — this is a configuration change for the Claude development environment

https://claude.ai/code/session_01Hb6WFpzY7wgeahAdk72LeS

claude added 2 commits March 7, 2026 22:41
Ensures `pnpm install --frozen-lockfile` runs at the start of every
Claude session when node_modules is missing. This is critical in CI
(GitHub Actions) where dependencies are not pre-installed, preventing
Claude from failing on build/test/lint commands.

https://claude.ai/code/session_01Hb6WFpzY7wgeahAdk72LeS
@changeset-bot

changeset-bot Bot commented Mar 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 18d5742

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Mar 7, 2026

Copy link
Copy Markdown
@fast-check/ava

npm i https://pkg.pr.new/@fast-check/ava@6705

fast-check

npm i https://pkg.pr.new/fast-check@6705

@fast-check/jest

npm i https://pkg.pr.new/@fast-check/jest@6705

@fast-check/packaged

npm i https://pkg.pr.new/@fast-check/packaged@6705

@fast-check/poisoning

npm i https://pkg.pr.new/@fast-check/poisoning@6705

@fast-check/vitest

npm i https://pkg.pr.new/@fast-check/vitest@6705

@fast-check/worker

npm i https://pkg.pr.new/@fast-check/worker@6705

commit: 63c3827

@dubzzz
dubzzz enabled auto-merge (squash) March 7, 2026 22:56
@dubzzz
dubzzz merged commit 2503bde into main Mar 7, 2026
50 checks passed
@dubzzz
dubzzz deleted the claude/improve-github-actions-JEmzC branch March 7, 2026 23:00
@codecov

codecov Bot commented Mar 7, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.54%. Comparing base (e0effa4) to head (18d5742).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6705   +/-   ##
=======================================
  Coverage   94.54%   94.54%           
=======================================
  Files         210      210           
  Lines        5685     5686    +1     
  Branches     1500     1499    -1     
=======================================
+ Hits         5375     5376    +1     
  Misses        297      297           
  Partials       13       13           
Flag Coverage Δ
tests 94.54% <ø> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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