feat: complete Serverless rename, integration tests, and release workflow#11
Open
dadaism wants to merge 2 commits into
Open
feat: complete Serverless rename, integration tests, and release workflow#11dadaism wants to merge 2 commits into
dadaism wants to merge 2 commits into
Conversation
- 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Endpoint*types and client methods renamed toServerless*acrossclient.ts,types.ts, andtools/serverless.tsfor consistency with the V2 API namingclient.integration.test.tswith lifecycle tests for VMs, Pods, Serverless, Registry, and Volumes; tests skip automatically whenYOTTA_API_KEYis not setvitest.config.tsexcludes integration tests fromnpm test;vitest.integration.config.tstargets only integration tests fornpm run test:integrationrelease.ymltriggers on GitHub Release published → runs lint, build, unit tests, thennpm publish --provenance; no CLI steps needed to releaseci.ymlnow also runs on direct pushes tomainpublishConfig.access=public,test:integrationscript, version0.1.1Test plan
npm run lintpassesnpm run buildpassesnpm testpasses (unit tests only, no integration tests)npm run test:integrationruns (skips ifYOTTA_API_KEYnot set, or runs live with real key)NPM_TOKENsecret to GitHub repo → publish a GitHub Release → verifyrelease.ymlworkflow publishes to npm