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-cli.test.js b/mega-linter-runner/test/megalinter-cli.test.js index db281faea54..13066ad1b74 100644 --- a/mega-linter-runner/test/megalinter-cli.test.js +++ b/mega-linter-runner/test/megalinter-cli.test.js @@ -84,6 +84,7 @@ Disabled until find a way to run with default options release, "-e", '"ENABLE=YAML"', + "-v", ]; it("(CLI) run on own code base", async () => {