From 616b2e139ad1295742d3be8272f545232a5cf268 Mon Sep 17 00:00:00 2001 From: Oscar Hinton Date: Fri, 3 Dec 2021 20:35:34 +0000 Subject: [PATCH] Run npm lint in CI (#2197) --- .github/workflows/build.yml | 5 ++++- package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index de5b4be582..99618c1033 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -104,10 +104,13 @@ jobs: - name: NPM setup & test run: | - npm install + npm ci npm run dist npm run test + - name: Run linter + run: npm run lint + - name: Gulp run: gulp ci diff --git a/package.json b/package.json index 77393820c9..35149e2232 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "dist:safari:mas": "npm run build:prod && gulp dist:safari:mas", "dist:safari:masdev": "npm run build:prod && gulp dist:safari:masdev", "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", "test": "karma start --single-run", "test:watch": "karma start"