Skip to content

Commit

Permalink
install dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySun9 committed Nov 14, 2024
1 parent f14822f commit 233cbfc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions runScreenDiff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ fi

category="$1"

# Only install dependencies if running in GitHub Actions
if [ -n "$GITHUB_ACTIONS" ]; then
echo "*** Installing playwright dependencies ***"
cd "$GITHUB_ACTION_PATH" || exit
npm ci
npx playwright install --with-deps
else
echo "Skipping dependency installation - not running in GitHub Actions"
fi

# Run each command one by one
node run.js -c ${Config} -p ${Project} -g @${category}-screenshots
node libs/screenshot/merge.js screenshots/${category}
Expand Down

0 comments on commit 233cbfc

Please sign in to comment.