mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-11-26 02:52:09 +00:00
Add back CI check for uncommited changes
This commit is contained in:
parent
a31de8476d
commit
5c61ab77ec
2 changed files with 14 additions and 0 deletions
7
.github/workflows/dev.yml
vendored
7
.github/workflows/dev.yml
vendored
|
@ -20,3 +20,10 @@ jobs:
|
||||||
wrapper-directory: __tests__/data/basic
|
wrapper-directory: __tests__/data/basic
|
||||||
build-root-directory: __tests__/data/basic
|
build-root-directory: __tests__/data/basic
|
||||||
arguments: help
|
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)
|
||||||
|
|
7
.github/workflows/prod.yml
vendored
7
.github/workflows/prod.yml
vendored
|
@ -19,3 +19,10 @@ jobs:
|
||||||
wrapper-directory: __tests__/data/basic
|
wrapper-directory: __tests__/data/basic
|
||||||
build-root-directory: __tests__/data/basic
|
build-root-directory: __tests__/data/basic
|
||||||
arguments: help
|
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)
|
||||||
|
|
Loading…
Reference in a new issue