Skip to content

Commit

Permalink
Remove unused PACKAGE_MANAGER arg
Browse files Browse the repository at this point in the history
Signed-off-by: Olga Bulat <[email protected]>
  • Loading branch information
obulat committed Jul 18, 2024
1 parent abfec9e commit 6f3665e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
8 changes: 1 addition & 7 deletions frontend/bin/playwright.sh
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
#! /usr/bin/env sh
set -e

package_manager() {
grep packageManager ../package.json | awk '{print $2}' | sed 's/[",]//g'
}

version() {
pnpm ls --depth=0 | grep -e playwright | awk '{print $2}'
}

PACKAGE_MANAGER=$(package_manager)
export PACKAGE_MANAGER
export USER_ID="${USER_ID:-$(id -u)}"
export PLAYWRIGHT_ARGS="$*"
PLAYWRIGHT_VERSION=$(version)
Expand All @@ -19,7 +13,7 @@ export TEST_COMMAND="${TEST_COMMAND:-test:playwright:local}"

pnpm i18n:get-translations --en-only

echo Running Playwright v"$PLAYWRIGHT_VERSION" as "$USER_ID" with Playwright arguments "$PLAYWRIGHT_ARGS" under package manager "$PACKAGE_MANAGER"
echo Running Playwright v"$PLAYWRIGHT_VERSION" as "$USER_ID" with Playwright arguments "$PLAYWRIGHT_ARGS"

docker compose -f docker-compose.playwright.yml up --build --force-recreate --exit-code-from playwright --remove-orphans

Expand Down
1 change: 0 additions & 1 deletion frontend/docker-compose.playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ services:
context: .
dockerfile: Dockerfile.playwright
args:
- PACKAGE_MANAGER=${PACKAGE_MANAGER}
- PLAYWRIGHT_VERSION=${PLAYWRIGHT_VERSION}
volumes:
- ../node_modules:/node_modules
Expand Down

0 comments on commit 6f3665e

Please sign in to comment.