From b2730effc2ae13bf02f6f276a73b953f5d3887be Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Sun, 16 May 2021 07:46:26 +0200 Subject: [PATCH] Adding explicit linting step to workflow --- .github/workflows/build.yml | 10 ++++++++-- .travis.yml | 1 + package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) 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",