mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-25 14:26:19 +08:00
Add back CI check for uncommited changes
This commit is contained in:
parent
a31de8476d
commit
5c61ab77ec
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…
x
Reference in New Issue
Block a user