-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f95b176
commit 79e636b
Showing
4 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
set -e | ||
echo "Using: $(which node)" | ||
export PLAYWRIGHT_BROWSERS_PATH=$PWD/bundle/Cache/ | ||
echo $PLAYWRIGHT_BROWSERS_PATH | ||
NODE_VERSION=$(node --version) | ||
NODE_URL="https://nodejs.org/dist/$NODE_VERSION/node-$NODE_VERSION-darwin-x64.tar.gz" | ||
NODE_TAR_FILE="node-$NODE_VERSION-darwin-x64.tar.gz" | ||
NODE_DIR="node-$NODE_VERSION-darwin-x64" | ||
|
||
rm -rf ./bundle/ | ||
mkdir ./bundle/ | ||
|
||
# Build src | ||
npm ci | ||
npm run build | ||
cp -r ./lib/ ./bundle/lib/ | ||
|
||
cp -r bin/ bundle/bin/ | ||
cp package.json bundle/package.json | ||
cp package-lock.json bundle/package-lock.json | ||
wget $NODE_URL | ||
tar xf $NODE_TAR_FILE | ||
mv $NODE_DIR bundle/node | ||
|
||
pushd bundle/ | ||
|
||
npm cache clean --force | ||
npm ci --omit=dev | ||
|
||
|
||
npx playwright install | ||
npx playwright install-deps | ||
npx playwright --version | ||
|
||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters