File tree Expand file tree Collapse file tree 4 files changed +205
-152
lines changed Expand file tree Collapse file tree 4 files changed +205
-152
lines changed Original file line number Diff line number Diff line change 3535 run : |
3636 make install
3737 make test
38+
39+ - name : Set up Terraform
40+ uses : hashicorp/setup-terraform@v3
41+
42+ - name : Run Lambda integration tests
43+ run : |
44+ pip install terraform-local
45+ make tf-deploy
3846 make test-lambda
3947
4048 - name : Print logs
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ tf-deploy: ## Deploy the app locally via Terraform
2121 mkdir -p build/lambda
2222 cp -r app/lambda/* build/lambda/
2323
24- docker run -it - -platform=linux/amd64 --rm --entrypoint= -v $(PWD)/build/lambda:/tmp/lambda public.ecr.aws/lambda/python:3.11 pip install --upgrade --target /tmp/lambda -r /tmp/lambda/requirements.txt
24+ docker run --platform=linux/amd64 --rm --entrypoint= -v $(PWD)/build/lambda:/tmp/lambda public.ecr.aws/lambda/python:3.11 pip install --upgrade --target /tmp/lambda -r /tmp/lambda/requirements.txt
2525
2626 # #### NOTE: SOMETIMES THE ARM64 VERSION WORKS, SOMETIMES THE AMD64 VERSION WORKS? #####
27- # docker run -it - -platform=linux/arm64/v8 --rm --entrypoint= -v $(PWD)/build/lambda:/tmp/lambda public.ecr.aws/lambda/python:3.11 pip install --upgrade --target /tmp/lambda -r /tmp/lambda/requirements.txt
27+ # docker run --platform=linux/arm64/v8 --rm --entrypoint= -v $(PWD)/build/lambda:/tmp/lambda public.ecr.aws/lambda/python:3.11 pip install --upgrade --target /tmp/lambda -r /tmp/lambda/requirements.txt
2828
2929 $(VENV_RUN); tflocal init; tflocal apply -auto-approve
3030
You can’t perform that action at this time.
0 commit comments