Skip to content

Commit

Permalink
Do NOT merge.
Browse files Browse the repository at this point in the history
Isolate test suites and increase verbosity for debugging.
  • Loading branch information
Kurt-von-Laven committed Feb 19, 2023
1 parent 344f323 commit 3fbfe10
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 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
1 change: 1 addition & 0 deletions mega-linter-runner/test/megalinter-cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down

0 comments on commit 3fbfe10

Please sign in to comment.