From c31b5a2e8eb85d6eb0caabf5a76047df78f695a1 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 | 11 ++++++++--- mega-linter-runner/package.json | 5 ++++- mega-linter-runner/test/megalinter-module.test.js | 2 +- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test-mega-linter-runner.yml b/.github/workflows/test-mega-linter-runner.yml index b4aad1299f5..f4905f97181 100644 --- a/.github/workflows/test-mega-linter-runner.yml +++ b/.github/workflows/test-mega-linter-runner.yml @@ -7,7 +7,6 @@ concurrency: cancel-in-progress: true jobs: - build: name: Test MegaLinter runner # Set the agent to run on @@ -24,5 +23,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 2f5734cd87c..7b54bacaa29 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)`);