Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 747 Bytes

File metadata and controls

23 lines (17 loc) · 747 Bytes
title Configure custom commands to run after linters
description Customize your MegaLinter run by running commands after linters are run

Post-commands

MegaLinter can run custom commands after running linters (for example, running additional tests).

Example in .mega-linter.yml config file

POST_COMMANDS:
  - command: npm run test
    cwd: "workspace"   # Will be run at the root of the workspace (usually your repository root)
    continue_if_failed: False  # Will stop the process if the command fails (return code > 0)