check style a different way
This commit is contained in:
parent
5733db0089
commit
e6a400341a
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -16,11 +16,11 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: npm run test
|
run: npm run test
|
||||||
- name: Format
|
- name: Format
|
||||||
run: npm run fmt
|
run: npm run fmtcheck
|
||||||
- name: "check for uncommitted changes"
|
# - name: "check for uncommitted changes"
|
||||||
# Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
|
# # Ensure no changes, but ignore node_modules dir since dev/fresh ci deps installed.
|
||||||
run: |
|
# run: |
|
||||||
git diff --exit-code --stat -- . ':!node_modules' \
|
# git diff --exit-code --stat -- . ':!node_modules' \
|
||||||
|| (echo "##[error] found changed files after build. please 'npm run build && npm run fmt'" \
|
# || (echo "##[error] found changed files after build. please 'npm run build && npm run fmt'" \
|
||||||
"and check in all changes" \
|
# "and check in all changes" \
|
||||||
&& exit 1)
|
# && exit 1)
|
@ -7,7 +7,8 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ncc build src/main.ts --minify",
|
"build": "ncc build src/main.ts --minify",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"fmt": "prettier --write 'src/**/*.ts' '__tests__/**/*.ts'"
|
"fmt": "prettier --write 'src/**/*.ts' '__tests__/**/*.ts'",
|
||||||
|
"fmtcheck": "prettier --check 'src/**/*.ts' '__tests__/**/*.ts'"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user