Skip to content

Commit

Permalink
Merge pull request #3156 from Zemnmez/fix-lockfile-update-issue
Browse files Browse the repository at this point in the history
fix lockfile update issue
  • Loading branch information
Zemnmez authored May 29, 2023
2 parents 7adb1b2 + 98e23d3 commit 60f421c
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 1 deletion.
37 changes: 37 additions & 0 deletions bisect.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#! /usr/bin/env bash

CANNOT_BE_TESTED=125
GOOD=0
BAD=1

echo "Testing to see if renovate config is already broken..."

if ! bazel test //:validate_renovate_config_test; then
echo "Renovate config appears already broken, striking off this commit."
exit $CANNOT_BE_TESTED
fi

echo "force update the lockfile..."
if ! npm run pnpm i; then
echo "Failed to update lockfile."
exit $CANNOT_BE_TESTED
fi

echo "See if it breaks..."

EXIT_CODE=$CANNOT_BE_TESTED

if bazel test //:validate_renovate_config_test; then
echo "Pass."
EXIT_CODE=$GOOD
else

echo "Fail."
EXIT_CODE=$BAD
fi

echo "Cleaning up..."

git reset --hard

exit $EXIT_CODE
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"react-router-dom": "6.11.2",
"react-spring": "9.7.1",
"regenerator-runtime": "0.13.11",
"renovate": "^35.98.4",
"renovate": "^34.159.2",
"sharp": "0.32.1",
"stylelint": "15.6.2",
"stylelint-config-css-modules": "4.2.0",
Expand Down

0 comments on commit 60f421c

Please sign in to comment.