From e21dc0c2358d23593ec43746e23115375116935c Mon Sep 17 00:00:00 2001 From: Chris Wilkinson Date: Mon, 16 Aug 2021 10:10:21 +0100 Subject: [PATCH] build(docker): mount an empty folder for the integration test results GitHub Actions has seen some failures due to permission problems. This is caused by the mounted folder not existing, so Docker has to create it. On Linux, the permissions are based on the container, which causes a failure when the host tries to subsequently write to it. (This doesn't happen on Macs due to the Docker For Mac intermediary virtual machine.) So, this makes sure the folder exists but is empty before mounting. Refs #388 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 76ba18cd..62d916ad 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ test: build ## Run the tests integration-test: export TARGET = integration integration-test: export LOG_FILE = integration/results/docker.log integration-test: build ## Run the integration tests - rm -rf integration/results + mkdir -p integration/results && rm -r integration/results/* ${DOCKER_COMPOSE} run --rm playwright; ${LOGS} smoke-test: build ## Run the smoke tests