Chore: CI: Fix .eslintignore and .gitignore CI check passes when it should fail (#10923)

pull/10931/head
Henry Heino 2024-08-23 03:49:17 -07:00 committed by GitHub
parent 700ffa2529
commit 12a26023dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -180,6 +180,10 @@ fi
if [ "$IS_LINUX" == "1" ]; then
echo "Step: Checking for files that should have been ignored..."
# .gitignore and .eslintignore can be modified during yarn install. Reset them
# so that checkIgnoredFiles works.
git restore .gitignore .eslintignore
node packages/tools/checkIgnoredFiles.js
testResult=$?
if [ $testResult -ne 0 ]; then