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)`);