From 8cd428914147227571f2135e9215de2f02e69b59 Mon Sep 17 00:00:00 2001 From: Brian Cristante <33549821+brcrista@users.noreply.github.com> Date: Fri, 10 Sep 2021 10:36:43 -0400 Subject: [PATCH] remove verify-no-unstaged-changes.sh --- .github/workflows/build.yml | 5 +---- __tests__/verify-no-unstaged-changes.sh | 17 ----------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 __tests__/verify-no-unstaged-changes.sh diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9eb0e32a..0078cbc9 100755 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,4 @@ jobs: - run: npm ci - run: npm run build - run: npm run format-check - - run: npm test - - name: Verify no unstaged changes - if: runner.os != 'windows' - run: bash __tests__/verify-no-unstaged-changes.sh + - run: npm test \ No newline at end of file diff --git a/__tests__/verify-no-unstaged-changes.sh b/__tests__/verify-no-unstaged-changes.sh deleted file mode 100644 index c99e2265..00000000 --- a/__tests__/verify-no-unstaged-changes.sh +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/bash - -if [[ "$(git status --porcelain)" != "" ]]; then - echo ---------------------------------------- - echo git status - echo ---------------------------------------- - git status - echo ---------------------------------------- - echo git diff - echo ---------------------------------------- - git diff - echo ---------------------------------------- - echo Troubleshooting - echo ---------------------------------------- - echo "::error::Unstaged changes detected. Locally try running: git clean -ffdx && npm ci && npm run pre-checkin" - exit 1 -fi \ No newline at end of file