diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml index 5eb4725..8a7cf52 100644 --- a/.github/workflows/dev.yml +++ b/.github/workflows/dev.yml @@ -20,3 +20,10 @@ jobs: wrapper-directory: __tests__/data/basic build-root-directory: __tests__/data/basic arguments: help + - name: Check for uncommitted changes + # Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed. + run: | + git diff --exit-code --stat -- . ':!node_modules' \ + || (echo "##[error] found changed files after build. please 'npm run all'" \ + "and check in all changes" \ + && exit 1) diff --git a/.github/workflows/prod.yml b/.github/workflows/prod.yml index 3d69deb..fbcbc5b 100644 --- a/.github/workflows/prod.yml +++ b/.github/workflows/prod.yml @@ -19,3 +19,10 @@ jobs: wrapper-directory: __tests__/data/basic build-root-directory: __tests__/data/basic arguments: help + - name: Check for uncommitted changes + # Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed. + run: | + git diff --exit-code --stat -- . ':!node_modules' \ + || (echo "##[error] found changed files after build. please 'npm run all'" \ + "and check in all changes" \ + && exit 1)