Skip to content

Commit 743d32c

Browse files
committed
small polishing
1 parent 4735525 commit 743d32c

File tree

4 files changed

+205
-152
lines changed

4 files changed

+205
-152
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ jobs:
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

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)