Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix lockfile update issue #3156

Merged
merged 3 commits into from
May 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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