Skip to content

Commit b79909b

Browse files
committed
chore: add another test to check potential errors
1 parent d7ce866 commit b79909b

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/dockerized-test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ jobs:
3838
docker build . -t local/test -f Dockerfile.rie \
3939
--build-arg HANDLERS_TO_BUILD="${HANDLERS_TO_BUILD}" \
4040
--build-arg OUTPUT_DIR="${OUTPUT_DIR}"
41-
42-
- name: Verify image contents
41+
42+
- name: Test container manually
4343
run: |
44-
echo "Checking /var/task contents:"
45-
docker run --rm --entrypoint ls local/test -la /var/task
46-
echo "Checking if basic-lambda binary exists:"
47-
docker run --rm --entrypoint test local/test -f /var/task/basic-lambda && echo "Binary exists" || echo "Binary NOT found"
44+
docker run -d --name test-container -p 9000:8080 local/test basic-lambda
45+
sleep 10
46+
docker logs test-container
47+
docker kill test-container || true
4848
4949
- name: Run tests
5050
uses: aws/containerized-test-runner-for-aws-lambda@main

0 commit comments

Comments
 (0)