Skip to content

feat: complete Serverless rename, integration tests, and release workflow#11

Open
dadaism wants to merge 2 commits into
mainfrom
feat/serverless-rename-integration-tests
Open

feat: complete Serverless rename, integration tests, and release workflow#11
dadaism wants to merge 2 commits into
mainfrom
feat/serverless-rename-integration-tests

Conversation

@dadaism

@dadaism dadaism commented Mar 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Endpoint→Serverless rename: All Endpoint* types and client methods renamed to Serverless* across client.ts, types.ts, and tools/serverless.ts for consistency with the V2 API naming
  • Integration tests: Added client.integration.test.ts with lifecycle tests for VMs, Pods, Serverless, Registry, and Volumes; tests skip automatically when YOTTA_API_KEY is not set
  • Separate vitest configs: vitest.config.ts excludes integration tests from npm test; vitest.integration.config.ts targets only integration tests for npm run test:integration
  • GitHub release workflow: release.yml triggers on GitHub Release published → runs lint, build, unit tests, then npm publish --provenance; no CLI steps needed to release
  • CI update: ci.yml now also runs on direct pushes to main
  • Package updates: publishConfig.access=public, test:integration script, version 0.1.1

Test plan

  • npm run lint passes
  • npm run build passes
  • npm test passes (unit tests only, no integration tests)
  • npm run test:integration runs (skips if YOTTA_API_KEY not set, or runs live with real key)
  • Add NPM_TOKEN secret to GitHub repo → publish a GitHub Release → verify release.yml workflow publishes to npm

dadaism added 2 commits March 13, 2026 19:47
- Rename all Endpoint* types and client methods to Serverless* in
  client.ts, types.ts, and tools/serverless.ts
- Update client.test.ts to match renamed method names
- Add client.integration.test.ts with lifecycle tests for VMs, Pods,
  Serverless, Registry, Volumes, and auth; tests skip when YOTTA_API_KEY
  is not set
- Add vitest.config.ts (excludes integration tests from default run)
- Add vitest.integration.config.ts (includes only integration tests)
- Fix YOTTA_API_BASE_URL in .env.example to api.yottalabs.ai
- Add .github/workflows/release.yml triggered on GitHub Release published
  (lint → build → test → npm publish --provenance --access public)
- Update .github/workflows/ci.yml to also run on push to main
- Add publishConfig.access=public to package.json for scoped package
- Add test:integration script to package.json
- Bump version to 0.1.1

Requires NPM_TOKEN secret in GitHub repo settings.
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.

1 participant