1
0
Fork 0
mirror of https://github.com/actions/setup-node synced 2025-04-09 18:35:51 +00:00
This commit is contained in:
eric sciple 2020-01-24 16:39:37 -05:00
parent 039ef76d72
commit bf34d46487
2 changed files with 21 additions and 0 deletions

View file

@ -31,6 +31,10 @@ jobs:
- name: npm test
run: npm test
- name: Verify no unstaged changes
if: runner.os != 'windows'
run: __test__/verify-no-unstaged-changes.sh
test:
name: Test E2E
runs-on: ubuntu-latest

View file

@ -0,0 +1,17 @@
#!/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 all"
exit 1
fi