Skip to content

Commit

Permalink
Do NOT merge.
Browse files Browse the repository at this point in the history
Isolate test suites and increase log level for debugging.
  • Loading branch information
Kurt-von-Laven committed Feb 19, 2023
1 parent 344f323 commit c31b5a2
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/test-mega-linter-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ concurrency:
cancel-in-progress: true

jobs:

build:
name: Test MegaLinter runner
# Set the agent to run on
Expand All @@ -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
5 changes: 4 additions & 1 deletion mega-linter-runner/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion mega-linter-runner/test/megalinter-module.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)`);
Expand Down

0 comments on commit c31b5a2

Please sign in to comment.