Skip to content

Conversation

@mattapperson
Copy link
Collaborator

Summary

Adds comprehensive TypeScript type checking to the Speakeasy PR workflow to ensure all code passes type validation before changes are committed.

Changes

  • ✅ Added Node.js setup step to workflow
  • ✅ Added SDK build step (required for examples to import correctly)
  • ✅ Added typecheck for all TypeScript files in tests/ directory
  • ✅ Added typecheck for TypeScript files in examples/ root directory
  • ✅ Added typecheck for examples/nextjs-example project

Test Plan

  • Workflow runs successfully on this PR
  • Type errors in tests/ would cause CI to fail
  • Type errors in examples/ would cause CI to fail
  • Type errors in examples/nextjs-example/ would cause CI to fail

Add comprehensive TypeScript type checking to the Speakeasy PR workflow:
- Typecheck all files in tests/ directory
- Typecheck examples root directory
- Typecheck examples/nextjs-example project
- Build SDK before running typechecks to ensure examples can import correctly

This ensures all TypeScript code passes type validation before changes are committed.
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: Should we pin to 22?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ty

@mattapperson mattapperson merged commit 1f4bd0d into main Oct 28, 2025
2 checks passed
@mattapperson mattapperson deleted the add-ci-typecheck-validation branch October 28, 2025 01:26
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