From 41a56a8e8e0b32b3c0110b766af9937dccd7f4bb Mon Sep 17 00:00:00 2001 From: Kurt von Laven Date: Mon, 30 Jan 2023 23:13:46 -0800 Subject: [PATCH] Do NOT merge. Isolate test suites and increase log level for debugging. --- .github/workflows/test-mega-linter-runner.yml | 10 ++++++++-- mega-linter-runner/package.json | 5 ++++- mega-linter-runner/test/megalinter-module.test.js | 2 +- 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-mega-linter-runner.yml b/.github/workflows/test-mega-linter-runner.yml index afdbf9567c7..594af1249d6 100644 --- a/.github/workflows/test-mega-linter-runner.yml +++ b/.github/workflows/test-mega-linter-runner.yml @@ -40,5 +40,11 @@ jobs: node-version: "12" - name: Install dependencies run: cd mega-linter-runner && yarn install --frozen-lockfile && npm link - - name: Run tests - run: cd mega-linter-runner && npm run test + - name: Run CLI tests + run: cd mega-linter-runner && npm run test:cli + - name: Run module tests + if: always() + run: cd mega-linter-runner && npm run test:module + - name: Run upgrade tests + if: always() + run: cd mega-linter-runner && npm run test:upgrade diff --git a/mega-linter-runner/package.json b/mega-linter-runner/package.json index a331933246f..e8ecfc4f5f4 100644 --- a/mega-linter-runner/package.json +++ b/mega-linter-runner/package.json @@ -15,7 +15,10 @@ "mega-linter-runner": "lib/index.js" }, "scripts": { - "test": "mocha \"test/**/*.test.js\"" + "test": "mocha \"test/**/*.test.js\"", + "test:cli": "mocha test/megalinter-cli.test.js", + "test:module": "mocha test/megalinter-module.test.js", + "test:upgrade": "mocha test/megalinter-upgrade.test.js" }, "keywords": [ "mega-linter", diff --git a/mega-linter-runner/test/megalinter-module.test.js b/mega-linter-runner/test/megalinter-module.test.js index 3612f5a777f..0143012e4f2 100644 --- a/mega-linter-runner/test/megalinter-module.test.js +++ b/mega-linter-runner/test/megalinter-module.test.js @@ -48,7 +48,7 @@ Disabled until find a way to run with default options path: "./..", release, nodockerpull, - env: ["ENABLE=YAML"], + env: ["ENABLE=YAML", "LOG_LEVEL=DEBUG"], }; const res = await new MegaLinterRunner().run(options); assert(res.status === 0, `status is 0 (${res.status} returned)`);