Skip to content

Comments

Add workflow to verify examples without deployment#643

Merged
bnusunny merged 4 commits intomainfrom
verify-examples-workflow
Feb 18, 2026
Merged

Add workflow to verify examples without deployment#643
bnusunny merged 4 commits intomainfrom
verify-examples-workflow

Conversation

@bnusunny
Copy link
Contributor

Summary

Adds a new examples.yaml workflow that validates and tests examples locally without deploying to AWS.

Jobs

  • validate — runs sam validate --lint on all 41 example templates
  • build-layer — builds the x86_64 adapter layer from source
  • test-image (8 examples) — builds local adapter Docker image, sam build, sam local start-api, HTTP health check
  • test-zip (9 examples) — patches templates to use locally built layer, sam build, sam local start-api, HTTP health check

Details

  • Triggers on PRs touching examples/** and via workflow_dispatch
  • Uses --container-env-vars to set PORT=8000 avoiding conflict with SAM's RIE on port 8080
  • Excluded from local API test: examples that hardcode port 8080 (nginx, php, flask, aspnet-mvc), need third-party layers (bun, nginx-zip, php-zip), or require arm64 (javalin, rust-actix-web, rust-axum)

- Validates all 41 SAM templates with sam validate --lint
- Builds adapter layer from source for local testing
- Tests 8 Docker-based examples: build, start-api, HTTP health check
- Tests 9 zip-based examples: local layer, build, start-api, HTTP health check
- Overrides PORT to avoid conflict with SAM's RIE on port 8080
- Triggers on PRs touching examples/ and via workflow_dispatch
@bnusunny bnusunny merged commit ff00c65 into main Feb 18, 2026
25 checks passed
@bnusunny bnusunny deleted the verify-examples-workflow branch February 18, 2026 19:19
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