From 408b28a315afdeb052ffd80dce0f08ccaefd22d5 Mon Sep 17 00:00:00 2001 From: Erick Wendel Date: Mon, 18 Mar 2024 20:29:43 -0500 Subject: [PATCH] add manual build Signed-off-by: Erick Wendel --- .github/workflows/docker-workflow.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-workflow.yml b/.github/workflows/docker-workflow.yml index 7b9b7c4..0013b54 100644 --- a/.github/workflows/docker-workflow.yml +++ b/.github/workflows/docker-workflow.yml @@ -23,8 +23,18 @@ jobs: - name: Start localstack run: docker-compose up -d localstack + - name: Build docker image + run: docker build -t e2e-tests-sls . + - name: Run tests - run: docker-compose up --exit-code-from test + run: docker run \ + --restart=on-failure \ + --env LOCALSTACK_HOST=localstack \ + --env AWS_ACCESS_KEY_ID=test \ + --env AWS_SECRET_ACCESS_KEY=test \ + --network default \ + e2e-tests-sls \ + npm run test - name: Clean up run: docker-compose down --volumes