diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89a3ebb3..29d80efd 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/.travis.yml b/.travis.yml index 220c8032..9beecfb5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,4 +16,5 @@ before_install: install: - npm ci - npm run build + - npm run lint after_success: npm run coverage diff --git a/package.json b/package.json index fc71cae3..5e7a6fa7 100644 --- a/package.json +++ b/package.json @@ -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",