1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Adding explicit linting step to workflow

This commit is contained in:
Patrik J. Braun 2021-05-16 07:46:26 +02:00
parent 355df1d022
commit b2730effc2
3 changed files with 10 additions and 3 deletions

View File

@ -47,10 +47,16 @@ jobs:
sleep 1
done
- name: npm install, build, and test
- name: npm install and build
run: |
npm ci
npm run build --if-present
npm run build
- name: tslint
run: |
npm run lint
- name: test
run: |
npm test
env:
MYSQL_HOST: localhost

View File

@ -16,4 +16,5 @@ before_install:
install:
- npm ci
- npm run build
- npm run lint
after_success: npm run coverage

View File

@ -12,7 +12,7 @@
"build-en": "tsc && gulp build-prod --languages=en",
"create-release": "gulp create-release",
"build-backend": "tsc",
"pretest": "npm run lint && tsc",
"pretest": "tsc",
"test": "ng test && nyc mocha --recursive test",
"lint": "tslint --project tsconfig.json src/**/**.ts test/**/**.ts",
"coverage": "nyc report --reporter=text-lcov | coveralls",