Skip to content

Commit c31b5a2

Browse files
Do NOT merge.
Isolate test suites and increase log level for debugging.
1 parent 344f323 commit c31b5a2

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/test-mega-linter-runner.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ concurrency:
77
cancel-in-progress: true
88

99
jobs:
10-
1110
build:
1211
name: Test MegaLinter runner
1312
# Set the agent to run on
@@ -24,5 +23,11 @@ jobs:
2423
node-version: "12"
2524
- name: Install dependencies
2625
run: cd mega-linter-runner && yarn install --frozen-lockfile && npm link
27-
- name: Run tests
28-
run: cd mega-linter-runner && npm run test
26+
- name: Run CLI tests
27+
run: cd mega-linter-runner && npm run test:cli
28+
- name: Run module tests
29+
if: always()
30+
run: cd mega-linter-runner && npm run test:module
31+
- name: Run upgrade tests
32+
if: always()
33+
run: cd mega-linter-runner && npm run test:upgrade

mega-linter-runner/package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
"mega-linter-runner": "lib/index.js"
1616
},
1717
"scripts": {
18-
"test": "mocha \"test/**/*.test.js\""
18+
"test": "mocha \"test/**/*.test.js\"",
19+
"test:cli": "mocha test/megalinter-cli.test.js",
20+
"test:module": "mocha test/megalinter-module.test.js",
21+
"test:upgrade": "mocha test/megalinter-upgrade.test.js"
1922
},
2023
"keywords": [
2124
"mega-linter",

mega-linter-runner/test/megalinter-module.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Disabled until find a way to run with default options
4848
path: "./..",
4949
release,
5050
nodockerpull,
51-
env: ["ENABLE=YAML"],
51+
env: ["ENABLE=YAML", "LOG_LEVEL=DEBUG"],
5252
};
5353
const res = await new MegaLinterRunner().run(options);
5454
assert(res.status === 0, `status is 0 (${res.status} returned)`);

0 commit comments

Comments
 (0)