From a8093ab58f76333ecbcbe0fa40b2a6fa1d0a4c8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iv=C3=A1n=20Pereira?= Date: Sun, 8 Sep 2024 23:39:43 +0200 Subject: [PATCH] Get the Playwright version from the package.json (#101) --- .playwright_docker_version | 1 - package.json | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 .playwright_docker_version diff --git a/.playwright_docker_version b/.playwright_docker_version deleted file mode 100644 index ef82763..0000000 --- a/.playwright_docker_version +++ /dev/null @@ -1 +0,0 @@ -v1.47.0-jammy \ No newline at end of file diff --git a/package.json b/package.json index 18b9b7b..3cc21fe 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "stop:ha": "docker stop $(docker ps -a -q --filter ancestor=homeassistant/home-assistant:${TAG:-$(cat .hass/config/.HA_VERSION)}) || true", "reset:ha": "git add .hass/config/.HA_VERSION && git checkout .hass/config", "demo:ha": "pnpm test:clean && pnpm build && pnpm start:ha", - "start:playwright": "docker run --rm --network host --add-host host.docker.internal:host-gateway -v $(pwd):/$(pwd)/ -w $(pwd) -i mcr.microsoft.com/playwright:$(cat .playwright_docker_version) sh -c \"yarn test:run && exit\"", + "start:playwright": "docker run --rm --network host --add-host host.docker.internal:host-gateway -v $(pwd):/$(pwd)/ -w $(pwd) -i mcr.microsoft.com/playwright:v$npm_package_devDependencies__playwright_test-jammy sh -c \"yarn test:run && exit\"", "prepare": "pnpm build", "prepublishOnly": "pnpm lint && pnpm test:ts && pnpm test:ci", "version": "git add .",