From 81126bb8641aa26a1924cb09dac467863f487ed7 Mon Sep 17 00:00:00 2001 From: David Mehren Date: Fri, 21 Aug 2020 21:45:53 +0200 Subject: [PATCH 1/3] Do not automatically fix linting problems Signed-off-by: David Mehren --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 113b00c18..41bb7c760 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "start:dev": "nest start --watch", "start:debug": "nest start --debug --watch", "start:prod": "node dist/main", - "lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", + "lint": "eslint \"{src,apps,libs,test}/**/*.ts\"", + "lint:fix": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix", "test": "jest", "test:watch": "jest --watch", "test:cov": "jest --coverage", From 196e7dfc58c253ab759a05b2e928dee3359fbe6f Mon Sep 17 00:00:00 2001 From: David Mehren Date: Fri, 21 Aug 2020 21:46:13 +0200 Subject: [PATCH 2/3] Update Travis CI config for NestJS Signed-off-by: David Mehren --- .travis.yml | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.travis.yml b/.travis.yml index 758b785d7..341102f71 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,6 +2,18 @@ language: node_js dist: xenial cache: yarn +stages: + - Static Tests + - test + +node_js: + - 10 + - 12 +env: + - TEST_SUITE=test + - TEST_SUITE=test:e2e +script: "yarn run $TEST_SUITE" + jobs: include: - stage: Static Tests @@ -9,27 +21,8 @@ jobs: node_js: - 10 script: - - yarn run eslint + - yarn run lint - name: ShellCheck script: - shellcheck bin/heroku bin/setup language: generic - - name: json-lint - addons: - apt: - packages: - - jq - script: - - yarn run jsonlint - language: generic - - stage: Dynamic Tests - name: Node.js 10 - node_js: - - 10 - script: - - yarn run mocha-suite - - name: Node.js 12 - node_js: - - 12 - script: - - yarn run mocha-suite From f2de18179ee12e5e59c60d473b54475158ca0c2b Mon Sep 17 00:00:00 2001 From: David Mehren Date: Tue, 25 Aug 2020 21:03:21 +0200 Subject: [PATCH 3/3] CI: Add Node 14 to node versions list This also removes the explicit node version in the eslint stage. Now the first version from the global list is automatically used. Signed-off-by: David Mehren --- .travis.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 341102f71..f6a58300d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ stages: node_js: - 10 - 12 + - 14 env: - TEST_SUITE=test - TEST_SUITE=test:e2e @@ -18,8 +19,6 @@ jobs: include: - stage: Static Tests name: eslint - node_js: - - 10 script: - yarn run lint - name: ShellCheck