mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-09-10 11:40:03 +08:00
check style a different way
This commit is contained in:
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@@ -16,11 +16,11 @@ jobs:
|
||||
- name: Test
|
||||
run: npm run test
|
||||
- name: Format
|
||||
run: npm run fmt
|
||||
- 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 build && npm run fmt'" \
|
||||
"and check in all changes" \
|
||||
&& exit 1)
|
||||
run: npm run fmtcheck
|
||||
# - 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 build && npm run fmt'" \
|
||||
# "and check in all changes" \
|
||||
# && exit 1)
|
Reference in New Issue
Block a user