Skip to content

Upgrade to Serverless v3 and add CI that tests the todos API - #3

Merged
HarshCasper merged 1 commit into
mainfrom
ci/assert-todos-api
Oct 14, 2026
Merged

HarshCasper merged 1 commit into
mainfrom
ci/assert-todos-api

Conversation

@HarshCasper

Copy link
Copy Markdown
Member

The repo had no CI and had not been updated since 2021. The pinned Serverless v1 and serverless-localstack no longer deploy.

  • serverless.yml:
    • frameworkVersion: "3"
    • runtime: python3.11, since the v3 schema rejects python3.12
    • ${sls:stage} and ${aws:region}, since v3 cannot resolve self:provider.region
  • package.json uses serverless ^3.40.0 and serverless-localstack ^1.4.0. package-lock.json is regenerated.
  • New Makefile with install, start, stop, deploy, test and remove.
  • New test.sh creates, reads, lists, updates and deletes a todo through the API.
  • README: lstk prerequisites, make commands, and the curl examples now send Content-Type: application/json. Without it, LocalStack's API Gateway re-encodes the body as form data and the Lambda fails to parse it.
  • New workflow runs make install deploy test.

Tested locally against LocalStack.

https://claude.ai/code/session_01DZfDmzUBPqNAu3yFKyfCNM

Upgrade to Serverless v3 and add CI that tests the todos API

Claude-Session: https://claude.ai/code/session_01DZfDmzUBPqNAu3yFKyfCNM
@HarshCasper
HarshCasper merged commit fb86965 into main Oct 14, 2026
1 check passed
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