From 5c61ab77ecef709249c13e61348a3b117d62ae24 Mon Sep 17 00:00:00 2001 From: Paul Merlin Date: Sat, 13 Jun 2020 13:46:53 +0200 Subject: [PATCH] Add back CI check for uncommited changes --- .github/workflows/dev.yml | 7 +++++++ .github/workflows/prod.yml | 7 +++++++ 2 files changed, 14 insertions(+) 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)