mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
Adding eslint to github actions
This commit is contained in:
parent
fd02a00a0e
commit
7ff2ca954c
3
.github/workflows/main.yml
vendored
3
.github/workflows/main.yml
vendored
@ -46,6 +46,9 @@ jobs:
|
|||||||
- name: Build Node.js code
|
- name: Build Node.js code
|
||||||
run: yarn run build:prod
|
run: yarn run build:prod
|
||||||
|
|
||||||
|
- name: Run eslint
|
||||||
|
run: yarn run lint:ci
|
||||||
|
|
||||||
- name: Run smoke test
|
- name: Run smoke test
|
||||||
run: VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test:smoke
|
run: VERBOSE=1 DEBUG=1 MOCHA_WEBDRIVER_HEADLESS=1 yarn run test:smoke
|
||||||
|
|
||||||
|
@ -923,7 +923,7 @@ export async function backupSqliteDatabase(src: string, dest: string,
|
|||||||
} finally {
|
} finally {
|
||||||
if (testProgress) { testProgress({action: 'close', phase: 'before'}); }
|
if (testProgress) { testProgress({action: 'close', phase: 'before'}); }
|
||||||
try {
|
try {
|
||||||
if (db) { await fromCallback(cb => db.close(cb)); }
|
if (db) { await fromCallback(cb => db!.close(cb)); }
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
_log.debug(null, `problem stopping copy of ${src} (${label}): ${err}`);
|
_log.debug(null, `problem stopping copy of ${src} (${label}): ${err}`);
|
||||||
}
|
}
|
||||||
|
@ -22,8 +22,9 @@
|
|||||||
"test:python": "sandbox_venv3/bin/python sandbox/grist/runtests.py ${GREP_TESTS:+discover -p \"test*${GREP_TESTS}*.py\"}",
|
"test:python": "sandbox_venv3/bin/python sandbox/grist/runtests.py ${GREP_TESTS:+discover -p \"test*${GREP_TESTS}*.py\"}",
|
||||||
"cli": "NODE_PATH=_build:_build/stubs:_build/ext node _build/app/server/companion.js",
|
"cli": "NODE_PATH=_build:_build/stubs:_build/ext node _build/app/server/companion.js",
|
||||||
"lint": "eslint --cache --cache-strategy content .",
|
"lint": "eslint --cache --cache-strategy content .",
|
||||||
"lint:fix": "eslint --cache --cache-strategy content --fix .",
|
"lint:fix": "eslint --cache --cache-strategy=content --fix .",
|
||||||
"generate:translation": "NODE_PATH=_build:_build/stubs:_build/ext node buildtools/generate_translation_keys.js"
|
"lint:ci": "eslint --max-warnings=0 .",
|
||||||
|
"generate:translation": "NODE_PATH=_build:_build/stubs:_build/ext node buildtools/generate_translation_keys.js",
|
||||||
},
|
},
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"grist",
|
"grist",
|
||||||
|
Loading…
Reference in New Issue
Block a user