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:
parent
355df1d022
commit
b2730effc2
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
@ -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
|
||||
|
@ -16,4 +16,5 @@ before_install:
|
||||
install:
|
||||
- npm ci
|
||||
- npm run build
|
||||
- npm run lint
|
||||
after_success: npm run coverage
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user