Run npm lint in CI (#2197)

This commit is contained in:
Oscar Hinton 2021-12-03 20:35:34 +00:00 committed by GitHub
parent 7a666e6092
commit 616b2e139a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -104,10 +104,13 @@ jobs:
- name: NPM setup & test - name: NPM setup & test
run: | run: |
npm install npm ci
npm run dist npm run dist
npm run test npm run test
- name: Run linter
run: npm run lint
- name: Gulp - name: Gulp
run: gulp ci run: gulp ci

View File

@ -21,7 +21,7 @@
"dist:safari:mas": "npm run build:prod && gulp dist:safari:mas", "dist:safari:mas": "npm run build:prod && gulp dist:safari:mas",
"dist:safari:masdev": "npm run build:prod && gulp dist:safari:masdev", "dist:safari:masdev": "npm run build:prod && gulp dist:safari:masdev",
"dist:safari:dmg": "npm run build:prod && gulp dist:safari:dmg", "dist:safari:dmg": "npm run build:prod && gulp dist:safari:dmg",
"lint": "tslint src/**/*.ts || true", "lint": "tslint src/**/*.ts",
"lint:fix": "tslint src/**/*.ts --fix", "lint:fix": "tslint src/**/*.ts --fix",
"test": "karma start --single-run", "test": "karma start --single-run",
"test:watch": "karma start" "test:watch": "karma start"